ui: fixed jumps in graph navigation

* moved graph postprocessing to GraphController to avoid reprocessing on edge activation
* animat sceneRect of the GraphView to avoid jump at end of animation
This commit is contained in:
Eberhard Graether
2015-06-09 22:51:09 +02:00
parent 0c41aecfc9
commit e85b9e7425
14 changed files with 178 additions and 128 deletions
@@ -41,11 +41,11 @@ void QtGraphNodeData::onClick()
}
}
void QtGraphNodeData::moved()
void QtGraphNodeData::moved(const Vec2i& oldPosition)
{
QtGraphNode::moved();
QtGraphNode::moved(oldPosition);
MessageGraphNodeMove(m_data->getId(), getPosition()).dispatch();
MessageGraphNodeMove(m_data->getId(), getPosition() - oldPosition).dispatch();
}
void QtGraphNodeData::updateStyle()