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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user