Skip to content
Permalink
Browse files

ui: fixed inheritance and template edges hidden by grouped node

  • Loading branch information
mlangkabel committed Jul 24, 2018
1 parent 7007cae commit eda86dc44a9d2efaef912670df9b85f7658a00e1
Showing with 10 additions and 1 deletion.
  1. +10 −1 src/lib_gui/qt/view/graphElements/QtGraphEdge.cpp
@@ -218,7 +218,16 @@ void QtGraphEdge::updateLine()
}
}

if (type == Edge::EDGE_INHERITANCE || (type == Edge::EDGE_TEMPLATE_SPECIALIZATION &&
// increase z-value for inheritance and specialization edges between members
if ((type == Edge::EDGE_INHERITANCE || type == Edge::EDGE_TEMPLATE_SPECIALIZATION) &&
(owner != ownerNonGroupParent || target != targetNonGroupParent))
{
if (style.zValue < 0)
{
style.zValue += 5;
}
}
else if (type == Edge::EDGE_INHERITANCE || (type == Edge::EDGE_TEMPLATE_SPECIALIZATION &&
owner == ownerNonGroupParent && target == targetNonGroupParent))
{
route = QtLineItemBase::ROUTE_VERTICAL;

0 comments on commit eda86dc

Please sign in to comment.
You can’t perform that action at this time.