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

Use Q_DECLARE_OVERRIDE

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