src: various fixes
* fixed crash when hovering GraphNode while expanding/collapsing it * fixed clang warnings * fixed GraphNodeExpandToggle to show empty circle * fixed Searchbar showing empty block when nothing was parsed * made template related edges in GraphView red
This commit is contained in:
@@ -523,7 +523,10 @@ void GraphController::addExpandToggleNode(DummyNode& node) const
|
||||
}
|
||||
}
|
||||
|
||||
node.subNodes.push_back(expandNode);
|
||||
if (expandNode.isExpanded() || expandNode.invisibleSubNodeCount)
|
||||
{
|
||||
node.subNodes.push_back(expandNode);
|
||||
}
|
||||
}
|
||||
|
||||
void GraphController::layoutToGrid(DummyNode& node) const
|
||||
|
||||
@@ -13,7 +13,6 @@ SearchController::~SearchController()
|
||||
{
|
||||
}
|
||||
|
||||
#include <iostream>
|
||||
void SearchController::handleMessage(MessageActivateTokens* message)
|
||||
{
|
||||
if (!m_ignoreNextMessageActivateTokens && message->tokenIds.size())
|
||||
|
||||
@@ -407,7 +407,12 @@ GraphViewStyle::EdgeStyle GraphViewStyle::getStyleForEdgeType(Edge::EdgeType typ
|
||||
case Edge::EDGE_INCLUDE:
|
||||
style.color = "#87BA50";
|
||||
break;
|
||||
|
||||
case Edge::EDGE_TEMPLATE_PARAMETER_OF:
|
||||
case Edge::EDGE_TEMPLATE_ARGUMENT_OF:
|
||||
case Edge::EDGE_TEMPLATE_DEFAULT_ARGUMENT_OF:
|
||||
case Edge::EDGE_TEMPLATE_SPECIALIZATION_OF:
|
||||
style.color = "#DD0000";
|
||||
break;
|
||||
default:
|
||||
style.color = "#878787";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user