Commit 3f29d795 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECLARE_OVERRIDE

parent b030ba76
......@@ -64,8 +64,8 @@ public slots:
void redrawEditToolbar();
protected:
void keyPressEvent (QKeyEvent * event);
void keyReleaseEvent (QKeyEvent * event);
void keyPressEvent (QKeyEvent * event) Q_DECL_OVERRIDE;
void keyReleaseEvent (QKeyEvent * event) Q_DECL_OVERRIDE;
private:
void setUpKeyboardControl();
......@@ -76,17 +76,17 @@ protected:
* This function is called when it is time for the app to save its
* properties for session management purposes.
*/
void saveProperties (KConfigGroup &);
void saveProperties (KConfigGroup &) Q_DECL_OVERRIDE;
/**
* This function is called when this app is restored. The KConfig
* object points to the session management config file that was saved
* with @ref saveProperties.
*/
void readProperties (const KConfigGroup &);
void readProperties (const KConfigGroup &) Q_DECL_OVERRIDE;
/// To save edits before closing.
bool queryClose();
bool queryClose() Q_DECL_OVERRIDE;
private slots:
// An extension of the constructor. Gives us two scans of the event queue.
......@@ -104,7 +104,7 @@ private slots:
void setEditIcon (const QString & actionName, const char iconType);
void viewFullScreen (bool activation);
QSize sizeHint() const;
QSize sizeHint() const Q_DECL_OVERRIDE;
private:
void setupActions();
......
......@@ -99,7 +99,7 @@ public:
Direction findBestWay (const int eI, const int eJ,
const int hI, const int hJ,
KGrLevelGrid * pGrid,
bool leftRightSearch = true);
bool leftRightSearch = true) Q_DECL_OVERRIDE;
private:
Direction searchUp (int eI, int eJ, int hJ);
......@@ -124,7 +124,7 @@ public:
Direction findBestWay (const int eI, const int eJ,
const int hI, const int hJ,
KGrLevelGrid * pGrid,
bool leftRightSearch = true);
bool leftRightSearch = true) Q_DECL_OVERRIDE;
private:
Direction findWayUp (const int eI, const int eJ);
......@@ -144,7 +144,7 @@ public:
Direction findBestWay (const int eI, const int eJ,
const int hI, const int hJ,
KGrLevelGrid * pGrid,
bool leftRightSearch = true);
bool leftRightSearch = true) Q_DECL_OVERRIDE;
};
#endif // KGRRULEBOOK_H
......@@ -24,7 +24,6 @@
#include <QList>
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <KLocalizedString>
#include <KMessageBox>
......@@ -128,7 +127,7 @@ public:
static QColor poleColor;
protected:
void paintEvent (QPaintEvent * event); // Draw a preview of a level.
void paintEvent (QPaintEvent * event) Q_DECL_OVERRIDE; // Draw a preview of a level.
private:
KGrGameIO * io;
......
......@@ -35,7 +35,7 @@ public:
*
* @param path The full path of the theme's .desktop file.
*/
bool readFromDesktopFile(const QString& path);
bool readFromDesktopFile(const QString& path) Q_DECL_OVERRIDE;
};
......@@ -54,7 +54,7 @@ public:
*
* @param path The full path of the theme's .desktop file.
*/
bool readFromDesktopFile(const QString& path);
bool readFromDesktopFile(const QString& path) Q_DECL_OVERRIDE;
};
#endif // KGRTHEMETYPES_H
......@@ -41,10 +41,10 @@ signals:
void mouseLetGo (int);
protected:
virtual void resizeEvent (QResizeEvent *);
virtual void mousePressEvent (QMouseEvent * mouseEvent);
virtual void mouseDoubleClickEvent (QMouseEvent * mouseEvent);
virtual void mouseReleaseEvent (QMouseEvent * mouseEvent);
void resizeEvent (QResizeEvent *) Q_DECL_OVERRIDE;
void mousePressEvent (QMouseEvent * mouseEvent) Q_DECL_OVERRIDE;
void mouseDoubleClickEvent (QMouseEvent * mouseEvent) Q_DECL_OVERRIDE;
void mouseReleaseEvent (QMouseEvent * mouseEvent) Q_DECL_OVERRIDE;
private:
KGrScene * m_scene;
......
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