nodeview: minor optimizations and behavior improvements

This commit is contained in:
itsmattkc
2020-10-10 19:47:25 +11:00
parent df54b98fd6
commit 0cafbb2594
2 changed files with 26 additions and 150 deletions
+5 -5
View File
@@ -84,11 +84,7 @@ protected:
virtual void wheelEvent(QWheelEvent* event) override;
//virtual void scrollContentsBy(int dx, int dy) override;
private:
void PlaceNode(NodeViewItem* n, const QPointF& pos);
void AttachNodesToCursor(const QList<Node*>& nodes);
void AttachItemsToCursor(const QList<NodeViewItem*>& items);
@@ -107,7 +103,9 @@ private:
void AssociateNodeWithSelectedBlocks(Node* n);
void DisassociateNode(Node* n, bool remove_from_map);
void SelectBlocksInternal();
void QueueSelectBlocksInternal();
QTimer select_blocks_internal_timer_;
NodeGraph* graph_;
@@ -188,6 +186,8 @@ private slots:
*/
void ContextMenuFilterChanged(QAction* action);
void SelectBlocksInternal();
};
OLIVE_NAMESPACE_EXIT