Commit 314d4ce4 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

texteditor: s/Q_DECL_OVERRIDE/override/g



Change-Id: I8ce0a93f25fe483d07d48a6525748fe40d647feb
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent b5641c7d
......@@ -63,7 +63,7 @@ public:
setText(text);
}
void apply(TextEditorWidget *editorWidget, int /*basePosition*/) const Q_DECL_OVERRIDE
void apply(TextEditorWidget *editorWidget, int /*basePosition*/) const override
{
//Move to last in circular clipboard
......@@ -87,7 +87,7 @@ private:
class ClipboardAssistProcessor: public IAssistProcessor
{
public:
IAssistProposal *perform(const AssistInterface *interface) Q_DECL_OVERRIDE
IAssistProposal *perform(const AssistInterface *interface) override
{
if (!interface)
return 0;
......
......@@ -40,9 +40,9 @@ namespace Internal {
class ClipboardAssistProvider: public IAssistProvider
{
public:
IAssistProvider::RunType runType() const Q_DECL_OVERRIDE;
bool supportsEditor(Core::Id editorId) const Q_DECL_OVERRIDE;
IAssistProcessor *createProcessor() const Q_DECL_OVERRIDE;
IAssistProvider::RunType runType() const override;
bool supportsEditor(Core::Id editorId) const override;
IAssistProcessor *createProcessor() const override;
};
} // namespace Internal
......
......@@ -44,7 +44,7 @@ public:
CompletionAssistProvider();
~CompletionAssistProvider();
IAssistProvider::RunType runType() const Q_DECL_OVERRIDE;
IAssistProvider::RunType runType() const override;
virtual int activationCharSequenceLength() const;
virtual bool isActivationCharSequence(const QString &sequence) const;
virtual bool isContinuationChar(const QChar &c) const;
......
......@@ -44,12 +44,12 @@ public:
FunctionHintProposal(int cursorPos, IFunctionHintProposalModel *model);
~FunctionHintProposal();
bool isFragile() const Q_DECL_OVERRIDE;
int basePosition() const Q_DECL_OVERRIDE;
bool isCorrective() const Q_DECL_OVERRIDE;
void makeCorrection(TextEditorWidget *editorWidget) Q_DECL_OVERRIDE;
IAssistProposalModel *model() const Q_DECL_OVERRIDE;
IAssistProposalWidget *createWidget() const Q_DECL_OVERRIDE;
bool isFragile() const override;
int basePosition() const override;
bool isCorrective() const override;
void makeCorrection(TextEditorWidget *editorWidget) override;
IAssistProposalModel *model() const override;
IAssistProposalWidget *createWidget() const override;
private:
int m_basePosition;
......
......@@ -46,20 +46,20 @@ public:
FunctionHintProposalWidget();
~FunctionHintProposalWidget();
void setAssistant(CodeAssistant *assistant) Q_DECL_OVERRIDE;
void setReason(AssistReason reason) Q_DECL_OVERRIDE;
void setKind(AssistKind kind) Q_DECL_OVERRIDE;
void setUnderlyingWidget(const QWidget *underlyingWidget) Q_DECL_OVERRIDE;
void setModel(IAssistProposalModel *model) Q_DECL_OVERRIDE;
void setDisplayRect(const QRect &rect) Q_DECL_OVERRIDE;
void setIsSynchronized(bool isSync) Q_DECL_OVERRIDE;
void setAssistant(CodeAssistant *assistant) override;
void setReason(AssistReason reason) override;
void setKind(AssistKind kind) override;
void setUnderlyingWidget(const QWidget *underlyingWidget) override;
void setModel(IAssistProposalModel *model) override;
void setDisplayRect(const QRect &rect) override;
void setIsSynchronized(bool isSync) override;
void showProposal(const QString &prefix) Q_DECL_OVERRIDE;
void updateProposal(const QString &prefix) Q_DECL_OVERRIDE;
void closeProposal() Q_DECL_OVERRIDE;
void showProposal(const QString &prefix) override;
void updateProposal(const QString &prefix) override;
void closeProposal() override;
protected:
bool eventFilter(QObject *o, QEvent *e) Q_DECL_OVERRIDE;
bool eventFilter(QObject *o, QEvent *e) override;
private slots:
void nextPage();
......
......@@ -46,12 +46,12 @@ public:
GenericProposal(int cursorPos, const QList<AssistProposalItem *> &items);
~GenericProposal();
bool isFragile() const Q_DECL_OVERRIDE;
int basePosition() const Q_DECL_OVERRIDE;
bool isCorrective() const Q_DECL_OVERRIDE;
void makeCorrection(TextEditorWidget *editorWidget) Q_DECL_OVERRIDE;
IAssistProposalModel *model() const Q_DECL_OVERRIDE;
IAssistProposalWidget *createWidget() const Q_DECL_OVERRIDE;
bool isFragile() const override;
int basePosition() const override;
bool isCorrective() const override;
void makeCorrection(TextEditorWidget *editorWidget) override;
IAssistProposalModel *model() const override;
IAssistProposalWidget *createWidget() const override;
protected:
void moveBasePosition(int length);
......
......@@ -52,9 +52,9 @@ public:
GenericProposalModel();
~GenericProposalModel();
void reset() Q_DECL_OVERRIDE;
int size() const Q_DECL_OVERRIDE;
QString text(int index) const Q_DECL_OVERRIDE;
void reset() override;
int size() const override;
QString text(int index) const override;
virtual QIcon icon(int index) const;
virtual QString detail(int index) const;
......
......@@ -50,17 +50,17 @@ public:
GenericProposalWidget();
~GenericProposalWidget();
void setAssistant(CodeAssistant *assistant) Q_DECL_OVERRIDE;
void setReason(AssistReason reason) Q_DECL_OVERRIDE;
void setKind(AssistKind kind) Q_DECL_OVERRIDE;
void setUnderlyingWidget(const QWidget *underlyingWidget) Q_DECL_OVERRIDE;
void setModel(IAssistProposalModel *model) Q_DECL_OVERRIDE;
void setDisplayRect(const QRect &rect) Q_DECL_OVERRIDE;
void setIsSynchronized(bool isSync) Q_DECL_OVERRIDE;
void showProposal(const QString &prefix) Q_DECL_OVERRIDE;
void updateProposal(const QString &prefix) Q_DECL_OVERRIDE;
void closeProposal() Q_DECL_OVERRIDE;
void setAssistant(CodeAssistant *assistant) override;
void setReason(AssistReason reason) override;
void setKind(AssistKind kind) override;
void setUnderlyingWidget(const QWidget *underlyingWidget) override;
void setModel(IAssistProposalModel *model) override;
void setDisplayRect(const QRect &rect) override;
void setIsSynchronized(bool isSync) override;
void showProposal(const QString &prefix) override;
void updateProposal(const QString &prefix) override;
void closeProposal() override;
private:
bool updateAndCheck(const QString &prefix);
......
......@@ -62,8 +62,8 @@ public:
KeywordsAssistProposalItem(bool isFunction);
~KeywordsAssistProposalItem();
bool prematurelyApplies(const QChar &c) const Q_DECL_OVERRIDE;
void applyContextualContent(TextEditorWidget *editorWidget, int basePosition) const Q_DECL_OVERRIDE;
bool prematurelyApplies(const QChar &c) const override;
void applyContextualContent(TextEditorWidget *editorWidget, int basePosition) const override;
private:
bool m_isFunction;
};
......@@ -74,10 +74,10 @@ public:
KeywordsFunctionHintModel(const QStringList &functionSymbols);
~KeywordsFunctionHintModel();
void reset() Q_DECL_OVERRIDE;
int size() const Q_DECL_OVERRIDE;
QString text(int index) const Q_DECL_OVERRIDE;
int activeArgument(const QString &prefix) const Q_DECL_OVERRIDE;
void reset() override;
int size() const override;
QString text(int index) const override;
int activeArgument(const QString &prefix) const override;
private:
QStringList m_functionSymbols;
......@@ -89,7 +89,7 @@ public:
KeywordsCompletionAssistProcessor(Keywords keywords);
~KeywordsCompletionAssistProcessor();
IAssistProposal *perform(const AssistInterface *interface) Q_DECL_OVERRIDE;
IAssistProposal *perform(const AssistInterface *interface) override;
QChar startOfCommentChar() const;
protected:
......
......@@ -44,7 +44,7 @@ public:
~QuickFixAssistProcessor();
private:
IAssistProposal *perform(const AssistInterface *interface) Q_DECL_OVERRIDE;
IAssistProposal *perform(const AssistInterface *interface) override;
const QuickFixAssistProvider *m_provider;
};
......
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