Commit a5ec450a authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECLARE_OVERRIDE

parent dbf09ba8
......@@ -55,7 +55,7 @@ public:
~ExerciseCompare();
/** force the creation of a new task */
void forceNewTask();
void forceNewTask() Q_DECL_OVERRIDE;
void setQuestionMixed(bool value);
......
......@@ -54,7 +54,7 @@ public:
~ExerciseConvert();
/** force the creation of a new task */
void forceNewTask();
void forceNewTask() Q_DECL_OVERRIDE;
void update();
......@@ -106,7 +106,7 @@ private:
void denominatorReturnPressed();
protected:
void showEvent(QShowEvent * event);
void showEvent(QShowEvent * event) Q_DECL_OVERRIDE;
};
#endif
......
......@@ -63,7 +63,7 @@ public:
~ExerciseFactorize();
/** force the creation of a new task */
void forceNewTask();
void forceNewTask() Q_DECL_OVERRIDE;
void update();
......@@ -144,7 +144,7 @@ private:
void setButtonsEnabled(bool enabled);
protected:
void showEvent(QShowEvent * event);
void showEvent(QShowEvent * event) Q_DECL_OVERRIDE;
};
#endif
......@@ -52,7 +52,7 @@ public:
/** resets the current state, creates a new task and counts the last task
* as wrong, if it wasn't solved (in _NEXT_TASK state) yet mainly used
* after changing the task parameters */
void forceNewTask();
void forceNewTask() Q_DECL_OVERRIDE;
Q_SIGNALS:
/** signal emitted if task solved correctly */
......@@ -123,7 +123,7 @@ private:
protected:
/** sets focus to input fields */
void showEvent(QShowEvent * event);
void showEvent(QShowEvent * event) Q_DECL_OVERRIDE;
};
#endif // EXERCISEMIXEDNUMBERS_H
......@@ -49,7 +49,7 @@ public:
~ExercisePercentage();
/** force the creation of a new task */
void forceNewTask();
void forceNewTask() Q_DECL_OVERRIDE;
void update();
......
......@@ -46,7 +46,7 @@ public:
void updateAndRepaint();
protected:
virtual QSize minimumSizeHint() const {
QSize minimumSizeHint() const Q_DECL_OVERRIDE {
return QSize(20, 10);
}
......
......@@ -47,7 +47,7 @@ public:
protected:
/** Function is called every time the screen need to be painted.
**/
void paintEvent(QPaintEvent * event);
void paintEvent(QPaintEvent * event) Q_DECL_OVERRIDE;
void paintWidget(QPainter & paint);
private:
......
......@@ -59,7 +59,7 @@ public:
protected:
/** Function is called every time the screen need to be painted.
**/
void paintEvent(QPaintEvent * event);
void paintEvent(QPaintEvent * event) Q_DECL_OVERRIDE;
void resetFraction(bool update);
bool checkTask();
......
......@@ -257,7 +257,7 @@ protected:
/** Function is called when user closes the window.
* Used to save the current statistics and settings before exiting.
*/
void closeEvent(QCloseEvent *event);
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
};
#endif // MainQtWidget
......@@ -68,7 +68,7 @@ private:
bool areFactors(const QStringList &factors);
/** reimplement keyPressEvent inherited from QWidget */
void keyPressEvent(QKeyEvent * event);
void keyPressEvent(QKeyEvent * event) Q_DECL_OVERRIDE;
};
#endif // PRIMEFACTORSLINEEDIT_H
......@@ -54,7 +54,7 @@ private:
bool m_questionMixed;
/** overrideing the paint event of FractionBaseWidget */
void paintEvent(QPaintEvent*);
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
};
#endif
......@@ -49,7 +49,7 @@ private:
int m_periodLength;
/** overrideing the paint event of FractionBaseWidget */
void paintEvent(QPaintEvent*);
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
};
#endif
......@@ -79,7 +79,7 @@ private:
Ratio m_result;
/** overrideing the paint event of FractionBaseWidget */
void paintEvent(QPaintEvent*);
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
void Init();
void showResult() ;
......
......@@ -68,7 +68,7 @@ public:
unsigned int pnr_ratios = 2, unsigned int pmax_md = 2);
/** force the creation of a new task */
void forceNewTask();
void forceNewTask() Q_DECL_OVERRIDE;
void setReducedForm(bool value);
void setQuestionMixed(bool value);
......@@ -132,7 +132,7 @@ private:
void denominatorReturnPressed();
protected:
void showEvent(QShowEvent * event);
void showEvent(QShowEvent * event) Q_DECL_OVERRIDE;
};
#endif
......@@ -63,7 +63,7 @@ private:
bool m_questionMixed;
/** overrideing the paint event of FractionBaseWidget */
void paintEvent(QPaintEvent*);
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
};
#endif
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