forked from qt-creator/qt-creator
Clang: delay text mark update
Reducing display of unwanted line annotations while typing in small files. Change-Id: I51864bbc3056ad792d5ee4b96f63e954dfba79dd Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include <QList>
|
||||
#include <QSet>
|
||||
#include <QTextEdit>
|
||||
#include <QTimer>
|
||||
#include <QVector>
|
||||
|
||||
#include <vector>
|
||||
@@ -82,8 +83,10 @@ private:
|
||||
QList<QTextEdit::ExtraSelection> m_extraSelections;
|
||||
TextEditor::RefactorMarkers m_fixItAvailableMarkers;
|
||||
std::vector<ClangTextMark *> m_clangTextMarks;
|
||||
bool m_firstDiagnostics = true;
|
||||
bool m_diagnosticsInvalidated = false;
|
||||
bool m_showTextMarkAnnotations = false;
|
||||
QTimer m_textMarkDelay;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user