mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-11 06:27:45 +00:00
INodeEditor: Pass cursor by reference
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user