Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
827:ea098f7565eb | 828:1fdd895063c5 |
---|---|
129 //!!! would be nice to ensure the default value corresponds to | 129 //!!! would be nice to ensure the default value corresponds to |
130 // an integer! | 130 // an integer! |
131 | 131 |
132 QLabel *label = new QLabel(name); | 132 QLabel *label = new QLabel(name); |
133 if (params[i].description != "") { | 133 if (params[i].description != "") { |
134 label->setToolTip(params[i].description.c_str()); | 134 label->setToolTip(QString("<qt>%1</qt>") |
135 .arg(params[i].description.c_str()) | |
136 .replace("\n", "<br>")); | |
135 } | 137 } |
136 m_layout->addWidget(label, i + offset, 0); | 138 m_layout->addWidget(label, i + offset, 0); |
137 | 139 |
138 ParamRec rec; | 140 ParamRec rec; |
139 rec.param = params[i]; | 141 rec.param = params[i]; |