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:
Nikolai Kosjar
2016-01-19 14:47:12 +01:00
parent 07332eecb3
commit 2745ecea20

View File

@@ -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);
}