File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -361,11 +361,11 @@ bool ToolTipToRichTextFilter::eventFilter(QObject *obj, QEvent *evt)
361
361
{
362
362
QWidget *widget = static_cast <QWidget*>(obj);
363
363
QString tooltip = widget->toolTip ();
364
- if (tooltip.size () > size_threshold && !tooltip.startsWith (" <qt/> " ) && !Qt::mightBeRichText (tooltip))
364
+ if (tooltip.size () > size_threshold && !tooltip.startsWith (" <qt" ) && !Qt::mightBeRichText (tooltip))
365
365
{
366
- // Prefix <qt/ > to make sure Qt detects this as rich text
366
+ // Envelop with <qt></qt > to make sure Qt detects this as rich text
367
367
// Escape the current message as HTML and replace \n by <br>
368
- tooltip = " <qt/ >" + HtmlEscape (tooltip, true );
368
+ tooltip = " <qt>" + HtmlEscape (tooltip, true ) + " </qt> " ;
369
369
widget->setToolTip (tooltip);
370
370
return true ;
371
371
}
You can’t perform that action at this time.
0 commit comments