From c5e43d86d12ce51c9035159a8acd86800fdf69bc Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Thu, 31 Jan 2019 13:16:44 +0100 Subject: 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 Reviewed-by: Ivan Donchevskii --- src/plugins/cpptools/baseeditordocumentprocessor.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/plugins/cpptools/baseeditordocumentprocessor.cpp') diff --git a/src/plugins/cpptools/baseeditordocumentprocessor.cpp b/src/plugins/cpptools/baseeditordocumentprocessor.cpp index 8c869ee51f..6bd91fc564 100644 --- a/src/plugins/cpptools/baseeditordocumentprocessor.cpp +++ b/src/plugins/cpptools/baseeditordocumentprocessor.cpp @@ -72,15 +72,6 @@ BaseEditorDocumentProcessor::extraRefactoringOperations(const TextEditor::Assist return TextEditor::QuickFixOperations(); } -bool BaseEditorDocumentProcessor::hasDiagnosticsAt(uint, uint) const -{ - return false; -} - -void BaseEditorDocumentProcessor::addDiagnosticToolTipToLayout(uint, uint, QLayout *) const -{ -} - void BaseEditorDocumentProcessor::editorDocumentTimerRestarted() { } -- cgit v1.2.1