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

Use Q_DECLARE_OVERRIDE

parent ae20c7e6
...@@ -53,10 +53,10 @@ class KTron : public KXmlGuiWindow { ...@@ -53,10 +53,10 @@ class KTron : public KXmlGuiWindow {
protected: protected:
/** calls tron->updatePixmap to draw frame in the new colors */ /** calls tron->updatePixmap to draw frame in the new colors */
void paletteChange(const QPalette &oldPalette); void paletteChange(const QPalette &oldPalette);
virtual void closeEvent(QCloseEvent *); void closeEvent(QCloseEvent *) Q_DECL_OVERRIDE;
/** Key hits */ /** Key hits */
void keyPressEvent(QKeyEvent *); void keyPressEvent(QKeyEvent *) Q_DECL_OVERRIDE;
void keyReleaseEvent(QKeyEvent *); void keyReleaseEvent(QKeyEvent *) Q_DECL_OVERRIDE;
public slots: public slots:
void close(); void close();
......
...@@ -87,11 +87,11 @@ class Tron : public QWidget ...@@ -87,11 +87,11 @@ class Tron : public QWidget
protected: protected:
/** Calls renderer */ /** Calls renderer */
void paintEvent(QPaintEvent *); void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;
/** resets game and creates a new playingfield */ /** resets game and creates a new playingfield */
void resizeEvent(QResizeEvent *); void resizeEvent(QResizeEvent *) Q_DECL_OVERRIDE;
/** pauses game */ /** pauses game */
void focusOutEvent(QFocusEvent *); void focusOutEvent(QFocusEvent *) Q_DECL_OVERRIDE;
private: private:
/** The playingfield */ /** The playingfield */
......
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