forked from qt-creator/qt-creator
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:
committed by
André Hartmann
parent
6afcf33f7a
commit
fc75b96dca
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user