summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/builtineditordocumentprocessor.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2016-02-05 15:16:02 +0100
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2016-02-16 18:12:12 +0000
commit89199b519b60193f13adabae607b4e2c066a6d8a (patch)
treedd8576b474151d73c9c10834d35e83476248e263 /src/plugins/cpptools/builtineditordocumentprocessor.cpp
parentcd94f66af026d637b38c74592d07110e73550f81 (diff)
downloadqt-creator-89199b519b60193f13adabae607b4e2c066a6d8a.tar.gz
Clang: Indicate available "fix its" with a light bulb
...at the end of the line, just like for the "Apply Function Signature Changes" refactor action. * Hovering the light bulb shows the tooltip "Inspect available fixits". * Clicking the light bulb leads to the refactoring menu, as if the user hit Alt+Return. Change-Id: Iaf7b3734c43e21fc28e6b0658f517d98858c0e0c Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/builtineditordocumentprocessor.cpp')
-rw-r--r--src/plugins/cpptools/builtineditordocumentprocessor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/cpptools/builtineditordocumentprocessor.cpp b/src/plugins/cpptools/builtineditordocumentprocessor.cpp
index 272fd9f128..b3a184139d 100644
--- a/src/plugins/cpptools/builtineditordocumentprocessor.cpp
+++ b/src/plugins/cpptools/builtineditordocumentprocessor.cpp
@@ -34,6 +34,7 @@
#include <texteditor/convenience.h>
#include <texteditor/fontsettings.h>
+#include <texteditor/refactoroverlay.h>
#include <texteditor/texteditorsettings.h>
#include <cplusplus/CppDocument.h>
@@ -307,7 +308,7 @@ void BuiltinEditorDocumentProcessor::onCodeWarningsUpdated(
m_codeWarnings += toTextEditorSelections(codeWarnings, textDocument());
m_codeWarningsUpdated = true;
- emit codeWarningsUpdated(revision(), m_codeWarnings);
+ emit codeWarningsUpdated(revision(), m_codeWarnings, TextEditor::RefactorMarkers());
}
SemanticInfo::Source BuiltinEditorDocumentProcessor::createSemanticInfoSource(bool force) const