aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel/clangeditordocumentprocessor.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2016-01-27 13:37:19 +0100
committerAlessandro Portale <alessandro.portale@theqtcompany.com>2016-02-12 11:20:27 +0000
commit9a4284d666a760960177cb42f6a2b78800f493a4 (patch)
treea861da89f78b0b61308e1aa611c3d305ac2cc5b0 /src/plugins/clangcodemodel/clangeditordocumentprocessor.h
parent593ed52c942f44f15a559b0701cda5e46c777290 (diff)
Clang: Use CppHoverHandler for diagnostic tooltips
We used to call QTextCharFormat::setToolTip from the ExtraSelection to install the diagnostic tooltip. Since this allows to set only text tooltips and we would like to introduce a custom tooltip widget for diagnostics, make use of CppHoverHandler, which is more flexible. Change-Id: Ia1b2c3c50810596ce4a3a025002e6e4efd8789db Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Diffstat (limited to 'src/plugins/clangcodemodel/clangeditordocumentprocessor.h')
-rw-r--r--src/plugins/clangcodemodel/clangeditordocumentprocessor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangeditordocumentprocessor.h b/src/plugins/clangcodemodel/clangeditordocumentprocessor.h
index e5e72b3b4b..a2a9755e25 100644
--- a/src/plugins/clangcodemodel/clangeditordocumentprocessor.h
+++ b/src/plugins/clangcodemodel/clangeditordocumentprocessor.h
@@ -76,6 +76,12 @@ public:
TextEditor::QuickFixOperations
extraRefactoringOperations(const TextEditor::AssistInterface &assistInterface) override;
+ bool hasDiagnosticsAt(uint line, uint column) const override;
+ void showDiagnosticTooltip(const QPoint &point,
+ QWidget *parent,
+ uint line,
+ uint column) const override;
+
ClangBackEnd::FileContainer fileContainerWithArguments() const;
void clearDiagnosticsWithFixIts();