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

Use Q_DECLARE_OVERRIDE

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