forked from qt-creator/qt-creator
TextEditor: Support hyperlinks in TextMark tooltip
Change-Id: I3fa4470fb06469286901025c350d636fcdd9410a Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
b1031d25dc
commit
8760c5024d
@@ -290,6 +290,7 @@ bool TextMark::addToolTipContent(QLayout *target) const
|
||||
}
|
||||
|
||||
auto textLabel = new QLabel;
|
||||
textLabel->setOpenExternalLinks(true);
|
||||
textLabel->setText(text);
|
||||
// Differentiate between tool tips that where explicitly set and default tool tips.
|
||||
textLabel->setEnabled(!m_toolTip.isEmpty());
|
||||
|
||||
Reference in New Issue
Block a user