created enum for more node data types

This commit is contained in:
itsmattkc
2019-04-09 20:55:25 +10:00
parent 433ae494ad
commit 7cbcb20543
22 changed files with 237 additions and 114 deletions
-10
View File
@@ -21,7 +21,6 @@ NodeEditor::NodeEditor(QWidget *parent) :
view_.setInteractive(true);
view_.setDragMode(QGraphicsView::RubberBandDrag);
connect(&view_, SIGNAL(ScrollChanged(qreal, qreal)), this, SLOT(Scroll(qreal, qreal)));
}
void NodeEditor::Retranslate()
@@ -57,12 +56,3 @@ void NodeEditor::ClearEvent()
nodes_.clear();
}
void NodeEditor::Scroll(qreal x, qreal y)
{
NodeUI* node;
foreach (node, nodes_) {
node->moveBy(x, y);
}
}