Commit d5c6cdad authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use strict compile flags here

parent 9e8012b0
......@@ -27,19 +27,9 @@ include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
add_definitions(
-DQT_USE_FAST_CONCATENATION
-DQT_USE_FAST_OPERATOR_PLUS
-DQT_NO_CAST_FROM_ASCII
-DQT_NO_CAST_TO_ASCII
-DQT_NO_CAST_FROM_BYTEARRAY
-DQT_NO_URL_CAST_FROM_STRING
-DQT_USE_QSTRINGBUILDER
)
add_subdirectory(themes)
add_subdirectory(doc)
......
......@@ -74,11 +74,11 @@ public:
* TODO: does nothing useful yet
*/
void stopGameOverAnimation();
signals:
Q_SIGNALS:
void moveFinished();
void removeFinished();
void bornFinished();
private slots:
private Q_SLOTS:
void moveAnimationFrame(int);
void removeAnimationFrame(int);
void bornAnimationFrame(int);
......
......@@ -59,7 +59,7 @@ public:
// enable use of qgraphicsitem_cast
enum { Type = UserType + 1 };
int type() const Q_DECL_OVERRIDE { return Type; }
private slots:
private Q_SLOTS:
void animFrameChanged(int);
private:
/**
......
......@@ -33,7 +33,7 @@ public:
~MainWidget();
KLinesScene* scene() { return m_scene; }
public slots:
public Q_SLOTS:
void setShowNextColors(bool);
private:
void resizeEvent( QResizeEvent* ) Q_DECL_OVERRIDE;
......
......@@ -95,7 +95,7 @@ public:
return FieldPos(static_cast<int>(( p.x()-m_playFieldRect.x()-m_playFieldBorderSize )/m_cellSize),
static_cast<int>(( p.y()-m_playFieldRect.y()-m_playFieldBorderSize )/m_cellSize));
}
public slots:
public Q_SLOTS:
/**
* Starts new game
*/
......@@ -128,11 +128,11 @@ public slots:
* Takes corresponding action on cell under focus rect
*/
void cellSelected();
signals:
Q_SIGNALS:
void scoreChanged(int);
void stateChanged(const QString &);
void gameOver(int);
private slots:
private Q_SLOTS:
void moveAnimFinished();
void removeAnimFinished();
void bornAnimFinished();
......
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