nodeview: implemented duplicate feature

This commit is contained in:
itsmattkc
2020-04-29 15:04:53 +10:00
parent d83073cf85
commit 13dc79d0cd
6 changed files with 85 additions and 13 deletions
+6 -2
View File
@@ -64,6 +64,8 @@ public:
void CopySelected(bool cut);
void Paste();
void Duplicate();
signals:
/**
* @brief Signal emitted when the selected nodes have changed
@@ -82,9 +84,11 @@ protected:
private:
void PlaceNode(NodeViewItem* n, const QPointF& pos);
void AttachItemToCursor(const QList<NodeViewItem*>& item);
void AttachNodesToCursor(const QList<Node*>& nodes);
void DetachItemFromCursor();
void AttachItemsToCursor(const QList<NodeViewItem*>& items);
void DetachItemsFromCursor();
void SetFlowDirection(NodeViewCommon::FlowDirection dir);