ui: show multi-level inheritance edge in graph legend

* and added "multi-level" to tooltip
This commit is contained in:
Eberhard Graether
2019-04-23 10:07:33 +02:00
parent ff9467ccae
commit 02835ff59a
2 changed files with 18 additions and 3 deletions
@@ -375,6 +375,15 @@ void QtGraphEdge::focusIn()
}
info.offset = Vec2i(10, 20);
if (type == Edge::EDGE_INHERITANCE && getData())
{
TokenComponentInheritanceChain* componentInheritance = getData()->getComponent<TokenComponentInheritanceChain>();
if (componentInheritance && componentInheritance->inheritanceEdgeIds.size() > 1)
{
info.title = L"multi-level " + info.title;
}
}
MessageTooltipShow(info, TOOLTIP_ORIGIN_GRAPH).dispatch();
}
}