INodeEditor: Pass cursor by reference

This commit is contained in:
Lioncache
2025-12-07 02:58:25 -05:00
parent 2f39217583
commit 03ae5b54df
2 changed files with 3 additions and 3 deletions

View File

@@ -232,7 +232,7 @@ CNodeSelection* INodeEditor::Selection() const
return mpSelection; return mpSelection;
} }
void INodeEditor::EnterPickMode(FNodeFlags AllowedNodes, bool ExitOnInvalidPick, bool EmitOnInvalidPick, bool EmitHoverOnButtonPress, QCursor Cursor /*= Qt::CrossCursor*/) void INodeEditor::EnterPickMode(FNodeFlags AllowedNodes, bool ExitOnInvalidPick, bool EmitOnInvalidPick, bool EmitHoverOnButtonPress, const QCursor& Cursor /*= Qt::CrossCursor*/)
{ {
// If we're already in pick mode, exit first so the previous caller has a chance to disconnect // If we're already in pick mode, exit first so the previous caller has a chance to disconnect
if (mPickMode) if (mPickMode)

View File

@@ -76,7 +76,7 @@ public:
bool HasSelection() const; bool HasSelection() const;
CNodeSelection* Selection() const; CNodeSelection* Selection() const;
void EnterPickMode(FNodeFlags AllowedNodes, bool ExitOnInvalidPick, bool EmitOnInvalidPick, bool EmitHoverOnButtonPress, QCursor Cursor = Qt::CrossCursor); void EnterPickMode(FNodeFlags AllowedNodes, bool ExitOnInvalidPick, bool EmitOnInvalidPick, bool EmitHoverOnButtonPress, const QCursor& Cursor = Qt::CrossCursor);
void ExitPickMode(); void ExitPickMode();
void NotifySelectionTransformed(); void NotifySelectionTransformed();
@@ -93,7 +93,7 @@ signals:
void SelectionModified(); void SelectionModified();
void SelectionTransformed(); void SelectionTransformed();
void PickModeEntered(QCursor Cursor); void PickModeEntered(const QCursor& Cursor);
void PickModeExited(); void PickModeExited();
void PickModeClick(const SRayIntersection& rkRayIntersect, QMouseEvent *pEvent); void PickModeClick(const SRayIntersection& rkRayIntersect, QMouseEvent *pEvent);
void PickModeHoverChanged(const SRayIntersection& rkRayIntersect, QMouseEvent *pEvent); void PickModeHoverChanged(const SRayIntersection& rkRayIntersect, QMouseEvent *pEvent);