Commit c33129a4 authored by Andrius Štikonas's avatar Andrius Štikonas

Q_DECL_OVERRIDE -> override.

parent 6f456374
......@@ -33,7 +33,7 @@
class AI_Kepler : public AI_Base
{
public:
QString whoami() Q_DECL_OVERRIDE { return QString ("Kepler"); } // IDW test.
QString whoami() override { return QString ("Kepler"); } // IDW test.
/**
* The Kepler AI constructor.
......@@ -60,7 +60,7 @@ public:
*/
int assessCube (const int index, const Player player,
const int neighbors [4], const Player owners[],
const int values[], const int maxValues[]) const Q_DECL_OVERRIDE;
const int values[], const int maxValues[]) const override;
};
#endif // AI_KEPLER_H
......@@ -38,7 +38,7 @@ public:
: m_ai (ai)
{ }
void run() Q_DECL_OVERRIDE {
void run() override {
int index = m_ai->computeMove();
emit done (index);
}
......
......@@ -33,7 +33,7 @@
class AI_Newton : public AI_Base
{
public:
QString whoami() Q_DECL_OVERRIDE { return QString ("Newton"); } // IDW test.
QString whoami() override { return QString ("Newton"); } // IDW test.
/**
* The Newton AI constructor.
......@@ -60,7 +60,7 @@ public:
*/
int assessCube (const int index, const Player player,
const int neighbors [4], const Player owners[],
const int values[], const int maxValues[]) const Q_DECL_OVERRIDE;
const int values[], const int maxValues[]) const override;
};
#endif // AI_NEWTON_H
......@@ -79,10 +79,10 @@ signals:
void mouseClick (int x, int y);
protected:
QSize sizeHint() const Q_DECL_OVERRIDE;
QSize sizeHint() const override;
virtual void initCubes();
void paintEvent (QPaintEvent * event) Q_DECL_OVERRIDE;
void resizeEvent (QResizeEvent * event) Q_DECL_OVERRIDE;
void paintEvent (QPaintEvent * event) override;
void resizeEvent (QResizeEvent * event) override;
private:
enum AnimationType {None, ComputerMove, Darken, RapidBlink, Scatter};
......
......@@ -79,10 +79,10 @@ signals:
protected:
/** checks, if mouseclick was inside this cube*/
void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent*) override;
/** refreshes the contents of the Cube */
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent*) override;
private:
int m_row;
......
......@@ -51,7 +51,7 @@ public slots:
protected:
/// To make sure all activity ceases before closing.
bool queryClose() Q_DECL_OVERRIDE;
bool queryClose() override;
private:
Game * m_game;
......
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