ui: graph rastering

Graph nodes are now placed within a raster. This is true for initial layout as well as drag-and-droped stuff.
This commit is contained in:
Manuel
2015-02-17 23:40:53 -08:00
parent 6c3c8cdcc1
commit 35867c17af
3 changed files with 104 additions and 17 deletions
@@ -9,6 +9,7 @@
#include "qt/graphics/QtGraphicsRoundedRectItem.h"
#include "qt/utility/QtDeviceScaledPixmap.h"
#include "qt/utility/QtGraphPostprocessor.h"
#include "qt/view/graphElements/nodeComponents/QtGraphNodeComponent.h"
#include "qt/view/graphElements/QtGraphEdge.h"
@@ -467,6 +468,8 @@ void QtGraphNode::mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
parent->mouseReleaseEvent(event);
}
}
QtGraphPostprocessor::allignNodeOnRaster(this);
}
void QtGraphNode::hoverEnterEvent(QGraphicsSceneHoverEvent* event)