Commit dff9ceb9 authored by Tobias Hunger's avatar Tobias Hunger

qmljseditor: s/Q_DECL_OVERRIDE/override/g

Change-Id: Ie01505be57f8e16b782ebd8ed1ff339cfb63cd8c
Reviewed-by: default avatarMarco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 4890307b
...@@ -135,7 +135,7 @@ public: ...@@ -135,7 +135,7 @@ public:
, order(order) , order(order)
{} {}
void operator()(const Value *base, const QString &name, const Value *value) Q_DECL_OVERRIDE void operator()(const Value *base, const QString &name, const Value *value) override
{ {
Q_UNUSED(base) Q_UNUSED(base)
QVariant data; QVariant data;
...@@ -163,7 +163,7 @@ public: ...@@ -163,7 +163,7 @@ public:
, afterOn(afterOn) , afterOn(afterOn)
{} {}
void operator ()(const Value *base, const QString &name, const Value *) Q_DECL_OVERRIDE void operator ()(const Value *base, const QString &name, const Value *) override
{ {
const CppComponentValue *qmlBase = value_cast<CppComponentValue>(base); const CppComponentValue *qmlBase = value_cast<CppComponentValue>(base);
...@@ -245,34 +245,34 @@ private: ...@@ -245,34 +245,34 @@ private:
(*_propertyProcessor)(_currentObject, name, value); (*_propertyProcessor)(_currentObject, name, value);
} }
bool processProperty(const QString &name, const Value *value, const PropertyInfo &) Q_DECL_OVERRIDE bool processProperty(const QString &name, const Value *value, const PropertyInfo &) override
{ {
process(name, value); process(name, value);
return true; return true;
} }
bool processEnumerator(const QString &name, const Value *value) Q_DECL_OVERRIDE bool processEnumerator(const QString &name, const Value *value) override
{ {
if (! _globalCompletion) if (! _globalCompletion)
process(name, value); process(name, value);
return true; return true;
} }
bool processSignal(const QString &name, const Value *value) Q_DECL_OVERRIDE bool processSignal(const QString &name, const Value *value) override
{ {
if (_globalCompletion) if (_globalCompletion)
process(name, value); process(name, value);
return true; return true;
} }
bool processSlot(const QString &name, const Value *value) Q_DECL_OVERRIDE bool processSlot(const QString &name, const Value *value) override
{ {
if (_enumerateSlots) if (_enumerateSlots)
process(name, value); process(name, value);
return true; return true;
} }
bool processGeneratedSlot(const QString &name, const Value *value) Q_DECL_OVERRIDE bool processGeneratedSlot(const QString &name, const Value *value) override
{ {
if (_enumerateGeneratedSlots || (_currentObject && _currentObject->className().endsWith(QLatin1String("Keys")))) { if (_enumerateGeneratedSlots || (_currentObject && _currentObject->className().endsWith(QLatin1String("Keys")))) {
// ### FIXME: add support for attached properties. // ### FIXME: add support for attached properties.
...@@ -403,10 +403,10 @@ public: ...@@ -403,10 +403,10 @@ public:
, m_isVariadic(isVariadic) , m_isVariadic(isVariadic)
{} {}
void reset() Q_DECL_OVERRIDE {} void reset() override {}
int size() const Q_DECL_OVERRIDE { return 1; } int size() const override { return 1; }
QString text(int index) const Q_DECL_OVERRIDE; QString text(int index) const override;
int activeArgument(const QString &prefix) const Q_DECL_OVERRIDE; int activeArgument(const QString &prefix) const override;
private: private:
QString m_functionName; QString m_functionName;
......
...@@ -57,9 +57,9 @@ namespace Internal { ...@@ -57,9 +57,9 @@ namespace Internal {
class QmlJSAssistProposalItem : public TextEditor::AssistProposalItem class QmlJSAssistProposalItem : public TextEditor::AssistProposalItem
{ {
public: public:
bool prematurelyApplies(const QChar &c) const Q_DECL_OVERRIDE; bool prematurelyApplies(const QChar &c) const override;
void applyContextualContent(TextEditor::TextEditorWidget *editorWidget, void applyContextualContent(TextEditor::TextEditorWidget *editorWidget,
int basePosition) const Q_DECL_OVERRIDE; int basePosition) const override;
}; };
...@@ -71,9 +71,9 @@ public: ...@@ -71,9 +71,9 @@ public:
loadContent(items); loadContent(items);
} }
void filter(const QString &prefix) Q_DECL_OVERRIDE; void filter(const QString &prefix) override;
void sort(const QString &prefix) Q_DECL_OVERRIDE; void sort(const QString &prefix) override;
bool keepPerfectMatch(TextEditor::AssistReason reason) const Q_DECL_OVERRIDE; bool keepPerfectMatch(TextEditor::AssistReason reason) const override;
}; };
...@@ -82,12 +82,12 @@ class QmlJSCompletionAssistProvider : public TextEditor::CompletionAssistProvide ...@@ -82,12 +82,12 @@ class QmlJSCompletionAssistProvider : public TextEditor::CompletionAssistProvide
Q_OBJECT Q_OBJECT
public: public:
bool supportsEditor(Core::Id editorId) const Q_DECL_OVERRIDE; bool supportsEditor(Core::Id editorId) const override;
TextEditor::IAssistProcessor *createProcessor() const Q_DECL_OVERRIDE; TextEditor::IAssistProcessor *createProcessor() const override;
int activationCharSequenceLength() const Q_DECL_OVERRIDE; int activationCharSequenceLength() const override;
bool isActivationCharSequence(const QString &sequence) const Q_DECL_OVERRIDE; bool isActivationCharSequence(const QString &sequence) const override;
bool isContinuationChar(const QChar &c) const Q_DECL_OVERRIDE; bool isContinuationChar(const QChar &c) const override;
}; };
...@@ -97,7 +97,7 @@ public: ...@@ -97,7 +97,7 @@ public:
QmlJSCompletionAssistProcessor(); QmlJSCompletionAssistProcessor();
~QmlJSCompletionAssistProcessor(); ~QmlJSCompletionAssistProcessor();
TextEditor::IAssistProposal *perform(const TextEditor::AssistInterface *interface) Q_DECL_OVERRIDE; TextEditor::IAssistProposal *perform(const TextEditor::AssistInterface *interface) override;
private: private:
TextEditor::IAssistProposal *createContentProposal() const; TextEditor::IAssistProposal *createContentProposal() const;
......
...@@ -64,11 +64,11 @@ public: ...@@ -64,11 +64,11 @@ public:
QmlJSQuickFixAssistProvider(); QmlJSQuickFixAssistProvider();
~QmlJSQuickFixAssistProvider(); ~QmlJSQuickFixAssistProvider();
IAssistProvider::RunType runType() const Q_DECL_OVERRIDE; IAssistProvider::RunType runType() const override;
bool supportsEditor(Core::Id editorId) const Q_DECL_OVERRIDE; bool supportsEditor(Core::Id editorId) const override;
TextEditor::IAssistProcessor *createProcessor() const Q_DECL_OVERRIDE; TextEditor::IAssistProcessor *createProcessor() const override;
QList<TextEditor::QuickFixFactory *> quickFixFactories() const Q_DECL_OVERRIDE; QList<TextEditor::QuickFixFactory *> quickFixFactories() const override;
}; };
} // Internal } // Internal
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment