Mercurial > hg > svgui
diff widgets/PluginParameterBox.cpp @ 828:1fdd895063c5
Rich text for tooltip -- apart from anything else, this ensures it gets word-wrapped
author | Chris Cannam |
---|---|
date | Fri, 25 Jul 2014 13:43:56 +0100 |
parents | e4773943c9c1 |
children | 4a578a360011 |
line wrap: on
line diff
--- a/widgets/PluginParameterBox.cpp Fri Jul 18 15:38:21 2014 +0100 +++ b/widgets/PluginParameterBox.cpp Fri Jul 25 13:43:56 2014 +0100 @@ -131,7 +131,9 @@ QLabel *label = new QLabel(name); if (params[i].description != "") { - label->setToolTip(params[i].description.c_str()); + label->setToolTip(QString("<qt>%1</qt>") + .arg(params[i].description.c_str()) + .replace("\n", "<br>")); } m_layout->addWidget(label, i + offset, 0);