Commit 49e0d907 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use override

parent 795b6d66
......@@ -32,20 +32,20 @@ public:
/**
* Destructor.
*/
virtual ~CTGlobalCron();
~CTGlobalCron() override;
QList<CTTask*> tasks() const Q_DECL_OVERRIDE;
QList<CTTask*> tasks() const override;
QList<CTVariable*> variables() const Q_DECL_OVERRIDE;
QList<CTVariable*> variables() const override;
void addTask(CTTask* task) Q_DECL_OVERRIDE;
void addVariable(CTVariable* variable) Q_DECL_OVERRIDE;
void addTask(CTTask* task) override;
void addVariable(CTVariable* variable) override;
void modifyTask(CTTask* task) Q_DECL_OVERRIDE;
void modifyVariable(CTVariable* variable) Q_DECL_OVERRIDE;
void modifyTask(CTTask* task) override;
void modifyVariable(CTVariable* variable) override;
void removeVariable(CTVariable* variable) Q_DECL_OVERRIDE;
void removeTask(CTTask* task) Q_DECL_OVERRIDE;
void removeVariable(CTVariable* variable) override;
void removeTask(CTTask* task) override;
private:
CTHost* ctHost;
......
......@@ -24,7 +24,7 @@ public:
int findPeriod() const;
QString exportUnit() const Q_DECL_OVERRIDE;
QString exportUnit() const override;
};
#endif // CTHOUR_H
......@@ -26,7 +26,7 @@ public:
int findPeriod() const;
QString exportUnit() const Q_DECL_OVERRIDE;
QString exportUnit() const override;
};
......
......@@ -38,7 +38,7 @@ public:
void resizeColumnContents();
void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent *e) override;
protected Q_SLOTS:
virtual void modifySelection(QTreeWidgetItem* item, int position) = 0;
......
......@@ -35,9 +35,9 @@ public:
~KCMCron();
void load() Q_DECL_OVERRIDE;
void save() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
void load() override;
void save() override;
void defaults() override;
/**
* Additional init
......
......@@ -61,9 +61,9 @@ public:
void updatePalette();
bool event(QEvent *e) Q_DECL_OVERRIDE;
bool event(QEvent *e) override;
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent*) override;
bool isDirty;
QPalette palSelected;
......
......@@ -67,7 +67,7 @@ Q_SIGNALS:
public Q_SLOTS:
void modifySelection();
void deleteSelection() Q_DECL_OVERRIDE;
void deleteSelection() override;
/**
* Run task now.
......@@ -84,7 +84,7 @@ public Q_SLOTS:
void changeCurrentSelection();
protected Q_SLOTS:
void modifySelection(QTreeWidgetItem* item, int position) Q_DECL_OVERRIDE;
void modifySelection(QTreeWidgetItem* item, int position) override;
private:
void refreshHeaders();
......
......@@ -58,7 +58,7 @@ Q_SIGNALS:
public Q_SLOTS:
void modifySelection();
void deleteSelection() Q_DECL_OVERRIDE;
void deleteSelection() override;
/**
* Create a new variable. Default is which type is most recently selected.
......@@ -70,7 +70,7 @@ public Q_SLOTS:
void changeCurrentSelection();
protected Q_SLOTS:
void modifySelection(QTreeWidgetItem* item, int position) Q_DECL_OVERRIDE;
void modifySelection(QTreeWidgetItem* item, int position) override;
private:
void refreshHeaders();
......
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