NodePoint also should show a context menu of piece.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-08-01 13:04:47 +03:00
parent c822464064
commit 145a0923cb
2 changed files with 7 additions and 0 deletions

View File

@ -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)
{ {

View File

@ -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)