From d9e6b23a8b386089d3c10ca41a9372917ca5c6c1 Mon Sep 17 00:00:00 2001 From: malte_langkabel Date: Fri, 16 Dec 2016 11:02:33 +0100 Subject: [PATCH] ui: removed underscores from edge-hover names in graph --- src/lib_gui/qt/view/graphElements/QtGraphEdge.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib_gui/qt/view/graphElements/QtGraphEdge.cpp b/src/lib_gui/qt/view/graphElements/QtGraphEdge.cpp index 200549c3..44dbabed 100644 --- a/src/lib_gui/qt/view/graphElements/QtGraphEdge.cpp +++ b/src/lib_gui/qt/view/graphElements/QtGraphEdge.cpp @@ -2,18 +2,18 @@ #include -#include "utility/messaging/type/MessageActivateEdge.h" -#include "utility/messaging/type/MessageFocusIn.h" -#include "utility/messaging/type/MessageFocusOut.h" -#include "utility/messaging/type/MessageGraphNodeBundleSplit.h" -#include "utility/utility.h" - #include "component/view/GraphViewStyle.h" #include "data/graph/Edge.h" #include "data/graph/token_component/TokenComponentAggregation.h" #include "qt/graphics/QtAngledLineItem.h" #include "qt/graphics/QtStraightLineItem.h" #include "qt/view/graphElements/QtGraphNode.h" +#include "utility/messaging/type/MessageActivateEdge.h" +#include "utility/messaging/type/MessageFocusIn.h" +#include "utility/messaging/type/MessageFocusOut.h" +#include "utility/messaging/type/MessageGraphNodeBundleSplit.h" +#include "utility/utility.h" +#include "utility/utilityString.h" QtGraphEdge::QtGraphEdge( const std::weak_ptr& owner, @@ -145,7 +145,7 @@ void QtGraphEdge::updateLine() style, m_weight, showArrow); } - QString toolTip = Edge::getTypeString(type).c_str(); + QString toolTip = utility::replace(Edge::getTypeString(type), "_", " ").c_str(); if (type == Edge::EDGE_AGGREGATION) { toolTip += ": " + QString::number(m_weight) + " edge";