Commit 80903042 authored by Alexander Wiebel's avatar Alexander Wiebel

[CHANGE #357] improved readability of tooltips for modules in toolbar

parent 3aa66386
...@@ -59,8 +59,8 @@ WQtModuleOneToOneCombinerAction::WQtModuleOneToOneCombinerAction( QWidget* paren ...@@ -59,8 +59,8 @@ WQtModuleOneToOneCombinerAction::WQtModuleOneToOneCombinerAction( QWidget* paren
targetName += " (" + m_combiner->getTargetModule()->getName() + ")"; targetName += " (" + m_combiner->getTargetModule()->getName() + ")";
} }
from = srcName + ":" + m_combiner->getSrcConnector() + " -> "; from = srcName + ": <i>" + m_combiner->getSrcConnector() + "</i> &nbsp;&nbsp;&#10140;&nbsp;&nbsp; ";
std::string tooltip = from + targetName + ":" + m_combiner->getTargetConnector(); std::string tooltip = "<b>" + targetName + "</b><br><nobr>" + from + targetName + ": <i>" + m_combiner->getTargetConnector() + "</i></nobr>";
setToolTip( tooltip.c_str() ); setToolTip( tooltip.c_str() );
setText( advancedText ? tooltip.c_str() : targetName.c_str() ); setText( advancedText ? tooltip.c_str() : targetName.c_str() );
setIconText( advancedText ? tooltip.c_str() : targetName.c_str() ); setIconText( advancedText ? tooltip.c_str() : targetName.c_str() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment