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

Use Q_DECLARE_OVERRIDE

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