CppEditor: Use full tooltip in ClangTextMark

Change-Id: I39cc64acbdbcd5e5156e1514acaf9674a91e81a4
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
hjk
2016-07-22 08:57:32 +02:00
committed by hjk
parent fe3f288f27
commit 728b914727
15 changed files with 82 additions and 60 deletions

View File

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