# HG changeset patch
# User Chris Cannam
# Date 1406292236 -3600
# Node ID 1fdd895063c5e1b9cdec2ab183f38cced9e8ee49
# Parent ea098f7565eb3349c74a215c7a6d2768127e9ace
Rich text for tooltip -- apart from anything else, this ensures it gets word-wrapped
diff -r ea098f7565eb -r 1fdd895063c5 widgets/PluginParameterBox.cpp
--- 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("%1")
+ .arg(params[i].description.c_str())
+ .replace("\n", "
"));
}
m_layout->addWidget(label, i + offset, 0);