diff options
author | hjk <hjk@theqtcompany.com> | 2016-07-22 08:57:32 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2016-07-25 13:25:16 +0000 |
commit | 728b9147279ee71a000be71d7dd95334f50aa8ae (patch) | |
tree | bd0fcf724045d2aecf999b326d5b22a2477c9218 /src/plugins/texteditor/textmark.cpp | |
parent | fe3f288f273db30fa04e3b5f2b9229e1f2844a84 (diff) |
CppEditor: Use full tooltip in ClangTextMark
Change-Id: I39cc64acbdbcd5e5156e1514acaf9674a91e81a4
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/texteditor/textmark.cpp')
-rw-r--r-- | src/plugins/texteditor/textmark.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/texteditor/textmark.cpp b/src/plugins/texteditor/textmark.cpp index 5f879e8760f..26f16b1b390 100644 --- a/src/plugins/texteditor/textmark.cpp +++ b/src/plugins/texteditor/textmark.cpp @@ -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; |