Commit 944d2fdf authored by Boudewijn Rempt's avatar Boudewijn Rempt

Add <nobr/> so the labels cannot be broken in the layer tooltip

BUG:406715
parent 2bab65a9
......@@ -45,7 +45,7 @@ QTextDocument *NodeToolTip::createDocument(const QModelIndex &index)
QString name = index.data(Qt::DisplayRole).toString();
KisBaseNode::PropertyList properties = index.data(KisNodeModel::PropertiesRole).value<KisBaseNode::PropertyList>();
QString rows;
const QString row = QString("<tr><td align=\"right\">%1:</td><td align=\"left\">%2</td></tr>");
const QString row = QString("<tr><td align=\"right\"><nobr>%1:</nobr></td><td align=\"left\">%2</td></tr>");
QString value;
for(int i = 0, n = properties.count(); i < n; ++i) {
if (properties[i].isMutable)
......
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