BaseHoverHandler: Remove virtual and add override to derivations

Change-Id: I2bd3fd4774d7ffeb54c373309c98aa879a391227
Reviewed-by: Marc Reilly <marc.reilly@gmail.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Andre Hartmann
2016-08-10 09:43:56 +02:00
committed by André Hartmann
parent 6afcf33f7a
commit fc75b96dca
4 changed files with 7 additions and 7 deletions

View File

@@ -36,8 +36,8 @@ public:
GlslHoverHandler() {} GlslHoverHandler() {}
private: private:
virtual void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos); void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos) override;
virtual void decorateToolTip(); void decorateToolTip() override;
}; };
} // namespace Internal } // namespace Internal

View File

@@ -46,7 +46,7 @@ signals:
void creatorHelpRequested(const QUrl &url); void creatorHelpRequested(const QUrl &url);
private: private:
void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos); void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos) override;
void identifyQMakeKeyword(const QString &text, int pos); void identifyQMakeKeyword(const QString &text, int pos);
enum ManualKind { enum ManualKind {

View File

@@ -57,8 +57,8 @@ public:
private: private:
void reset(); void reset();
void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos); void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos) override;
void operateTooltip(TextEditor::TextEditorWidget *editorWidget, const QPoint &point); void operateTooltip(TextEditor::TextEditorWidget *editorWidget, const QPoint &point) override;
bool matchDiagnosticMessage(QmlJSEditorWidget *qmlEditor, int pos); bool matchDiagnosticMessage(QmlJSEditorWidget *qmlEditor, int pos);
bool matchColorItem(const QmlJS::ScopeChain &lookupContext, bool matchColorItem(const QmlJS::ScopeChain &lookupContext,

View File

@@ -42,8 +42,8 @@ class TEXTEDITOR_EXPORT ColorPreviewHoverHandler : public BaseHoverHandler
public: public:
private: private:
virtual void identifyMatch(TextEditorWidget *editorWidget, int pos); void identifyMatch(TextEditorWidget *editorWidget, int pos) override;
virtual void operateTooltip(TextEditorWidget *editorWidget, const QPoint &point); void operateTooltip(TextEditorWidget *editorWidget, const QPoint &point) override;
QColor m_colorTip; QColor m_colorTip;
}; };