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() {}
|
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
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user