ui: Fixed group related issues in graph

* fixed aggregation layout within group
* fixed moving of group did not resize view
* fixed edges behind group could not be hovered
* fixed overlapping lines in sublayout
* fixed use of correct column width in sublayout
This commit is contained in:
Eberhard Graether
2018-04-11 14:11:53 +02:00
parent cbd782d0c1
commit 5f56a167d1
12 changed files with 57 additions and 43 deletions
@@ -12,6 +12,7 @@
#include "qt/view/graphElements/nodeComponents/QtGraphNodeComponent.h"
#include "qt/view/graphElements/QtGraphEdge.h"
#include "utility/messaging/type/MessageGraphNodeHide.h"
#include "utility/messaging/type/MessageGraphNodeMove.h"
#include "utility/ResourcePaths.h"
#include "utility/utilityString.h"
@@ -374,6 +375,11 @@ void QtGraphNode::addSubNode(QtGraphNode* node)
void QtGraphNode::moved(const Vec2i& oldPosition)
{
setPosition(GraphViewStyle::alignOnRaster(getPosition()));
if (isDataNode() || isGroupNode() || isBundleNode())
{
MessageGraphNodeMove(getTokenId(), getPosition() - oldPosition).dispatch();
}
}
void QtGraphNode::onClick()