mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-08 21:17:53 +00:00
INodeEditor: Pass cursor by reference
This commit is contained in:
@@ -232,7 +232,7 @@ CNodeSelection* INodeEditor::Selection() const
|
||||
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 (mPickMode)
|
||||
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
bool HasSelection() 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 NotifySelectionTransformed();
|
||||
@@ -93,7 +93,7 @@ signals:
|
||||
void SelectionModified();
|
||||
void SelectionTransformed();
|
||||
|
||||
void PickModeEntered(QCursor Cursor);
|
||||
void PickModeEntered(const QCursor& Cursor);
|
||||
void PickModeExited();
|
||||
void PickModeClick(const SRayIntersection& rkRayIntersect, QMouseEvent *pEvent);
|
||||
void PickModeHoverChanged(const SRayIntersection& rkRayIntersect, QMouseEvent *pEvent);
|
||||
|
||||
Reference in New Issue
Block a user