From fc75b96dca63b82063d047b1d6024e5673fbb026 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Wed, 10 Aug 2016 09:43:56 +0200 Subject: [PATCH] BaseHoverHandler: Remove virtual and add override to derivations Change-Id: I2bd3fd4774d7ffeb54c373309c98aa879a391227 Reviewed-by: Marc Reilly Reviewed-by: David Schulz --- src/plugins/glsleditor/glslhoverhandler.h | 4 ++-- src/plugins/qmakeprojectmanager/profilehoverhandler.h | 2 +- src/plugins/qmljseditor/qmljshoverhandler.h | 4 ++-- src/plugins/texteditor/colorpreviewhoverhandler.h | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/plugins/glsleditor/glslhoverhandler.h b/src/plugins/glsleditor/glslhoverhandler.h index f15c8b99483..5d1f29067e1 100644 --- a/src/plugins/glsleditor/glslhoverhandler.h +++ b/src/plugins/glsleditor/glslhoverhandler.h @@ -36,8 +36,8 @@ public: GlslHoverHandler() {} private: - virtual void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos); - virtual void decorateToolTip(); + void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos) override; + void decorateToolTip() override; }; } // namespace Internal diff --git a/src/plugins/qmakeprojectmanager/profilehoverhandler.h b/src/plugins/qmakeprojectmanager/profilehoverhandler.h index 407c1f4d284..7f067b345b1 100644 --- a/src/plugins/qmakeprojectmanager/profilehoverhandler.h +++ b/src/plugins/qmakeprojectmanager/profilehoverhandler.h @@ -46,7 +46,7 @@ signals: void creatorHelpRequested(const QUrl &url); private: - void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos); + void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos) override; void identifyQMakeKeyword(const QString &text, int pos); enum ManualKind { diff --git a/src/plugins/qmljseditor/qmljshoverhandler.h b/src/plugins/qmljseditor/qmljshoverhandler.h index bf82bcd30bf..e9f2d80ec80 100644 --- a/src/plugins/qmljseditor/qmljshoverhandler.h +++ b/src/plugins/qmljseditor/qmljshoverhandler.h @@ -57,8 +57,8 @@ public: private: void reset(); - void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos); - void operateTooltip(TextEditor::TextEditorWidget *editorWidget, const QPoint &point); + void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos) override; + void operateTooltip(TextEditor::TextEditorWidget *editorWidget, const QPoint &point) override; bool matchDiagnosticMessage(QmlJSEditorWidget *qmlEditor, int pos); bool matchColorItem(const QmlJS::ScopeChain &lookupContext, diff --git a/src/plugins/texteditor/colorpreviewhoverhandler.h b/src/plugins/texteditor/colorpreviewhoverhandler.h index eaa701c2872..2e956027dcc 100644 --- a/src/plugins/texteditor/colorpreviewhoverhandler.h +++ b/src/plugins/texteditor/colorpreviewhoverhandler.h @@ -42,8 +42,8 @@ class TEXTEDITOR_EXPORT ColorPreviewHoverHandler : public BaseHoverHandler public: private: - virtual void identifyMatch(TextEditorWidget *editorWidget, int pos); - virtual void operateTooltip(TextEditorWidget *editorWidget, const QPoint &point); + void identifyMatch(TextEditorWidget *editorWidget, int pos) override; + void operateTooltip(TextEditorWidget *editorWidget, const QPoint &point) override; QColor m_colorTip; };