forked from qt-creator/qt-creator
TextEditor: make the format of completion item detail text adjustable
Instead of always assuming content in the form of rich text allow each item individually to define it's text format for the detail text that is shown as a tooltip of a completion item. Fixes: QTCREATORBUG-22429 Change-Id: I9fa71373a743c26fa06d48acc5f0509584830ca0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -262,6 +262,11 @@ QString GenericProposalModel::detail(int index) const
|
||||
return m_currentItems.at(index)->detail();
|
||||
}
|
||||
|
||||
Qt::TextFormat GenericProposalModel::detailFormat(int index) const
|
||||
{
|
||||
return m_currentItems.at(index)->detailFormat();
|
||||
}
|
||||
|
||||
void GenericProposalModel::removeDuplicates()
|
||||
{
|
||||
if (m_duplicatesRemoved)
|
||||
|
||||
Reference in New Issue
Block a user