NodePoint also should show a context menu of piece.
--HG-- branch : develop
This commit is contained in:
parent
c822464064
commit
145a0923cb
|
@ -274,6 +274,12 @@ void VNodePoint::HideNode()
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void VNodePoint::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
|
||||||
|
{
|
||||||
|
emit ShowContextMenu(event);
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VNodePoint::EnableToolMove(bool move)
|
void VNodePoint::EnableToolMove(bool move)
|
||||||
{
|
{
|
||||||
|
|
|
@ -83,6 +83,7 @@ protected:
|
||||||
virtual void UpdateNamePosition(qreal mx, qreal my);
|
virtual void UpdateNamePosition(qreal mx, qreal my);
|
||||||
virtual void ShowNode() Q_DECL_OVERRIDE;
|
virtual void ShowNode() Q_DECL_OVERRIDE;
|
||||||
virtual void HideNode() Q_DECL_OVERRIDE;
|
virtual void HideNode() Q_DECL_OVERRIDE;
|
||||||
|
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event) Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VNodePoint)
|
Q_DISABLE_COPY(VNodePoint)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user