forked from qt-creator/qt-creator
		
	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>
This commit is contained in:
		| @@ -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() | ||||
| { | ||||
| } | ||||
|   | ||||
| @@ -81,8 +81,6 @@ public: | ||||
|     extraRefactoringOperations(const TextEditor::AssistInterface &assistInterface); | ||||
|  | ||||
|     virtual void invalidateDiagnostics(); | ||||
|     virtual bool hasDiagnosticsAt(uint line, uint column) const; | ||||
|     virtual void addDiagnosticToolTipToLayout(uint line, uint column, QLayout *layout) const; | ||||
|  | ||||
|     virtual void editorDocumentTimerRestarted(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user