diff options
author | hjk <hjk@theqtcompany.com> | 2016-07-19 11:58:15 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2016-07-19 10:45:23 +0000 |
commit | 6edfb669081231cc0fd7ddaad83fe83b48aa77a7 (patch) | |
tree | 5c4301e8e6ab19a914e24a25461388209232402f /src/plugins/texteditor/textmark.h | |
parent | 36e12b75e0c8d907665c975a9b283ed0cf61b59d (diff) |
TextEditor: Enable tooltips for textmarks
Adjust bookmark code, add tooltips for clang diagnostics.
Change-Id: I489d499f5431fcb29f27611d4350298acb30baac
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/texteditor/textmark.h')
-rw-r--r-- | src/plugins/texteditor/textmark.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/texteditor/textmark.h b/src/plugins/texteditor/textmark.h index 8387de8c71..a7585e379d 100644 --- a/src/plugins/texteditor/textmark.h +++ b/src/plugins/texteditor/textmark.h @@ -51,8 +51,6 @@ public: TextMark(const QString &fileName, int lineNumber, Core::Id category); virtual ~TextMark(); - TextMark(TextMark &&other) Q_DECL_NOEXCEPT; - // determine order on markers on the same line. enum Priority { @@ -93,6 +91,9 @@ public: TextDocument *baseTextDocument() const; void setBaseTextDocument(TextDocument *baseTextDocument); + QString toolTip() const; + void setToolTip(const QString &toolTip); + private: Q_DISABLE_COPY(TextMark) friend class Internal::TextMarkRegistry; @@ -106,6 +107,7 @@ private: QColor m_color; Core::Id m_category; double m_widthFactor; + QString m_toolTip; }; } // namespace TextEditor |