Commit 2ccb3fa1 by Alexander Wiebel

[FIX #357] removed HTML for text appearing in menus

parent 99b21b1d
......@@ -61,8 +61,12 @@ WQtModuleOneToOneCombinerAction::WQtModuleOneToOneCombinerAction( QWidget* paren
from = srcName + ": <i>" + m_combiner->getSrcConnector() + "</i> &nbsp;&nbsp;&#10140;&nbsp;&nbsp; ";
std::string tooltip = "<b>" + targetName + "</b><br><nobr>" + from + targetName + ": <i>" + m_combiner->getTargetConnector() + "</i></nobr>";
// We need this because menu items seem not to support HTNL
std::string advancedTextString = srcName + ":" + m_combiner->getSrcConnector() + " -> " + targetName + ":" + m_combiner->getTargetConnector();
setToolTip( tooltip.c_str() );
setText( advancedText ? tooltip.c_str() : targetName.c_str() );
setText( advancedText ? advancedTextString.c_str() : targetName.c_str() );
setIconText( advancedText ? tooltip.c_str() : targetName.c_str() );
setIcon( iconManager->getIcon( m_combiner->getTargetModule()->getName().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