summaryrefslogtreecommitdiff
path: root/src/plugins/clangcodemodel/clangtextmark.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2019-01-31 13:16:44 +0100
committerNikolai Kosjar <nikolai.kosjar@qt.io>2019-02-05 11:22:27 +0000
commitc5e43d86d12ce51c9035159a8acd86800fdf69bc (patch)
tree90030cd07fa47a25705cf485c333d06a90462660 /src/plugins/clangcodemodel/clangtextmark.h
parent1a58a30685a7acb386989f8edbcd497d9472acf1 (diff)
downloadqt-creator-c5e43d86d12ce51c9035159a8acd86800fdf69bc.tar.gz
Clang: Make diagnostic tooltips consistent
Fix that triggering a diagnostic tooltip from the diagnostic location/range itself (underlined text) did not show the icon on the left and the actions/toolbuttons on the right in the tooltip. Instead of showing the tooltip content itself, request the tooltip for the corresponding text mark to get the extra decoration and actions. Change-Id: I5e94aca117a761f7a798d4f4b33db6e386e54d84 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/clangcodemodel/clangtextmark.h')
-rw-r--r--src/plugins/clangcodemodel/clangtextmark.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangtextmark.h b/src/plugins/clangcodemodel/clangtextmark.h
index 1301cd200b..00cadfb5c8 100644
--- a/src/plugins/clangcodemodel/clangtextmark.h
+++ b/src/plugins/clangcodemodel/clangtextmark.h
@@ -44,7 +44,9 @@ public:
const RemovedFromEditorHandler &removedHandler,
bool fullVisualization);
+ ClangBackEnd::DiagnosticContainer diagnostic() const { return m_diagnostic; }
void updateIcon(bool valid = true);
+
private:
bool addToolTipContent(QLayout *target) const override;
void removedFromEditor() override;