forked from qt-creator/qt-creator
CppEditor: Use full tooltip in ClangTextMark
Change-Id: I39cc64acbdbcd5e5156e1514acaf9674a91e81a4 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
#include <coreplugin/documentmanager.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QLayout>
|
||||
|
||||
using namespace Core;
|
||||
using namespace Utils;
|
||||
using namespace TextEditor::Internal;
|
||||
@@ -188,6 +190,12 @@ void TextMark::dragToLine(int lineNumber)
|
||||
Q_UNUSED(lineNumber);
|
||||
}
|
||||
|
||||
void TextMark::addToToolTipLayout(QLayout *target)
|
||||
{
|
||||
if (!m_toolTip.isEmpty())
|
||||
target->addWidget(new QLabel(m_toolTip));
|
||||
}
|
||||
|
||||
TextDocument *TextMark::baseTextDocument() const
|
||||
{
|
||||
return m_baseTextDocument;
|
||||
|
||||
Reference in New Issue
Block a user