created enum for more node data types
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user