diff options
Diffstat (limited to 'src/plugins/cpptools')
-rw-r--r-- | src/plugins/cpptools/baseeditordocumentprocessor.h | 7 | ||||
-rw-r--r-- | src/plugins/cpptools/builtineditordocumentprocessor.cpp | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/plugins/cpptools/baseeditordocumentprocessor.h b/src/plugins/cpptools/baseeditordocumentprocessor.h index da6a20ca94..3ac8a3524d 100644 --- a/src/plugins/cpptools/baseeditordocumentprocessor.h +++ b/src/plugins/cpptools/baseeditordocumentprocessor.h @@ -37,6 +37,8 @@ #include <QTextEdit> +#include <functional> + namespace TextEditor { class TextDocument; class QuickFixOperations; @@ -69,10 +71,15 @@ public: virtual void editorDocumentTimerRestarted(); +public: + using HeaderErrorDiagnosticWidgetCreator = std::function<QWidget*()>; + signals: + // Signal interface to implement void codeWarningsUpdated(unsigned revision, const QList<QTextEdit::ExtraSelection> selections, + const HeaderErrorDiagnosticWidgetCreator &creator, const TextEditor::RefactorMarkers &refactorMarkers); void ifdefedOutBlocksUpdated(unsigned revision, diff --git a/src/plugins/cpptools/builtineditordocumentprocessor.cpp b/src/plugins/cpptools/builtineditordocumentprocessor.cpp index a7a7ac1a33..284e1af8ae 100644 --- a/src/plugins/cpptools/builtineditordocumentprocessor.cpp +++ b/src/plugins/cpptools/builtineditordocumentprocessor.cpp @@ -310,7 +310,10 @@ void BuiltinEditorDocumentProcessor::onCodeWarningsUpdated( m_codeWarnings += toTextEditorSelections(codeWarnings, textDocument()); m_codeWarningsUpdated = true; - emit codeWarningsUpdated(revision(), m_codeWarnings, TextEditor::RefactorMarkers()); + emit codeWarningsUpdated(revision(), + m_codeWarnings, + HeaderErrorDiagnosticWidgetCreator(), + TextEditor::RefactorMarkers()); } SemanticInfo::Source BuiltinEditorDocumentProcessor::createSemanticInfoSource(bool force) const |