Mercurial > hg > svgui
changeset 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 | ea098f7565eb |
children | 5acfb11e8aef |
files | widgets/PluginParameterBox.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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);