diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2018-05-09 13:37:51 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2018-05-14 09:04:42 +0000 |
commit | f46fb39f3c77cb50701ee1fb1dc992c466cef300 (patch) | |
tree | c7c9b075584a07a3fb337a39cc53049a924221db /src/plugins/clangcodemodel/clangdiagnosticmanager.h | |
parent | e7123b140eb7e5d392542d087cdf5320336dec8a (diff) | |
download | qt-creator-f46fb39f3c77cb50701ee1fb1dc992c466cef300.tar.gz |
Clang: Reduce diagnostic visualization for non-project files further
We already avoided showing inline annotations for diagnostics in
non-project files. But given many diagnostics the visualization is still
quite noisy. E.g. consider opening not self-contained header files or
files for which we do not have any project open, as it can happen if the
debugger jumps to such a file.
So leave only the text mark icon on the left and avoid all the rest:
underlines and refactoring icons in the editor, marks in the scrollbar
and task hub issues.
Change-Id: I05245981b21b38be650489a006593922dcb6896d
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/clangcodemodel/clangdiagnosticmanager.h')
-rw-r--r-- | src/plugins/clangcodemodel/clangdiagnosticmanager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/clangcodemodel/clangdiagnosticmanager.h b/src/plugins/clangcodemodel/clangdiagnosticmanager.h index c895735e8d..d0c31bf68b 100644 --- a/src/plugins/clangcodemodel/clangdiagnosticmanager.h +++ b/src/plugins/clangcodemodel/clangdiagnosticmanager.h @@ -51,7 +51,7 @@ public: ~ClangDiagnosticManager(); void processNewDiagnostics(const QVector<ClangBackEnd::DiagnosticContainer> &allDiagnostics, - bool showTextMarkAnnotations); + bool fullVisualization); const QVector<ClangBackEnd::DiagnosticContainer> &diagnosticsWithFixIts() const; QList<QTextEdit::ExtraSelection> takeExtraSelections(); @@ -88,7 +88,7 @@ private: std::vector<ClangTextMark *> m_clangTextMarks; bool m_firstDiagnostics = true; bool m_diagnosticsInvalidated = false; - bool m_showTextMarkAnnotations = false; + bool m_fullVisualization = false; QTimer m_textMarkDelay; }; |