Commit 9f06081a authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

TextEditor: Cleanup some redundant virtual keywords

Change-Id: Ic6157a1d780551977ffbb65ba4fc374a40e95662
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 10fa9c5c
......@@ -100,8 +100,7 @@ public:
, m_openInSplit(openInSplit)
{}
bool isFragile() const
{ return true; }
bool isFragile() const { return true; }
IAssistProposalWidget *createWidget() const
{ return new VirtualFunctionProposalWidget(m_openInSplit); }
......
......@@ -452,8 +452,8 @@ public:
, m_replaceDotForArrow(static_cast<CppAssistProposalModel *>(model)->m_replaceDotForArrow)
{}
virtual bool isCorrective() const { return m_replaceDotForArrow; }
virtual void makeCorrection(BaseTextEditor *editor);
bool isCorrective() const { return m_replaceDotForArrow; }
void makeCorrection(BaseTextEditor *editor);
private:
bool m_replaceDotForArrow;
......
......@@ -42,12 +42,12 @@ public:
FunctionHintProposal(int cursorPos, IFunctionHintProposalModel *model);
virtual ~FunctionHintProposal();
virtual bool isFragile() const;
virtual int basePosition() const;
virtual bool isCorrective() const;
virtual void makeCorrection(BaseTextEditor *editor);
virtual IAssistProposalModel *model() const;
virtual IAssistProposalWidget *createWidget() const;
bool isFragile() const;
int basePosition() const;
bool isCorrective() const;
void makeCorrection(BaseTextEditor *editor);
IAssistProposalModel *model() const;
IAssistProposalWidget *createWidget() const;
private:
int m_basePosition;
......
......@@ -40,14 +40,14 @@ class TEXTEDITOR_EXPORT GenericProposal : public IAssistProposal
{
public:
GenericProposal(int cursorPos, IGenericProposalModel *model);
virtual ~GenericProposal();
virtual bool isFragile() const;
virtual int basePosition() const;
virtual bool isCorrective() const;
virtual void makeCorrection(BaseTextEditor *editor);
virtual IAssistProposalModel *model() const;
virtual IAssistProposalWidget *createWidget() const;
~GenericProposal();
bool isFragile() const;
int basePosition() const;
bool isCorrective() const;
void makeCorrection(BaseTextEditor *editor);
IAssistProposalModel *model() const;
IAssistProposalWidget *createWidget() const;
protected:
void moveBasePosition(int length);
......
......@@ -45,19 +45,19 @@ class TEXTEDITOR_EXPORT GenericProposalWidget : public IAssistProposalWidget
public:
GenericProposalWidget();
virtual ~GenericProposalWidget();
~GenericProposalWidget();
virtual void setAssistant(CodeAssistant *assistant);
virtual void setReason(AssistReason reason);
virtual void setKind(AssistKind kind);
virtual void setUnderlyingWidget(const QWidget *underlyingWidget);
virtual void setModel(IAssistProposalModel *model);
virtual void setDisplayRect(const QRect &rect);
virtual void setIsSynchronized(bool isSync);
void setAssistant(CodeAssistant *assistant);
void setReason(AssistReason reason);
void setKind(AssistKind kind);
void setUnderlyingWidget(const QWidget *underlyingWidget);
void setModel(IAssistProposalModel *model);
void setDisplayRect(const QRect &rect);
void setIsSynchronized(bool isSync);
virtual void showProposal(const QString &prefix);
virtual void updateProposal(const QString &prefix);
virtual void closeProposal();
void showProposal(const QString &prefix);
void updateProposal(const QString &prefix);
void closeProposal();
private:
bool updateAndCheck(const QString &prefix);
......@@ -70,7 +70,7 @@ private slots:
void turnOnAutoWidth();
protected:
virtual bool eventFilter(QObject *o, QEvent *e);
bool eventFilter(QObject *o, QEvent *e);
bool activateCurrentProposalItem();
private:
......
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