forked from qt-creator/qt-creator
TextEditor: Assume rich text for completion details tooltip
...since that's
1. easier to handle (see e.g. QTCREATORBUG-15630, where a "&" was
not properly auto-detected).
2. consistent with the tooltip that is used for function signatures
(FunctionHintProposalWidgetPrivate)
Change-Id: I66aab253e13c5c7f63a0d9ddaf297b890567f335
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -154,6 +154,7 @@ public:
|
||||
// Limit horizontal width
|
||||
m_label->setSizePolicy(QSizePolicy::Fixed, m_label->sizePolicy().verticalPolicy());
|
||||
|
||||
m_label->setTextFormat(Qt::RichText);
|
||||
m_label->setForegroundRole(QPalette::ToolTipText);
|
||||
m_label->setBackgroundRole(QPalette::ToolTipBase);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user