summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/backgammon/backgammon.pro38
-rw-r--r--noncore/games/backgammon/backgammonview.h3
-rw-r--r--noncore/games/backgammon/moveengine.cpp2
3 files changed, 22 insertions, 21 deletions
diff --git a/noncore/games/backgammon/backgammon.pro b/noncore/games/backgammon/backgammon.pro
index 6f77a14..4be9491 100644
--- a/noncore/games/backgammon/backgammon.pro
+++ b/noncore/games/backgammon/backgammon.pro
@@ -1,31 +1,31 @@
TEMPLATE = app
CONFIG = qt warn_on release
HEADERS = backgammon.h \
- canvasimageitem.h \
- themedialog.h \
- moveengine.h \
- filedialog.h \
- playerdialog.h \
- aidialog.h \
- rulesdialog.h \
- displaydialog.h \
- definition.h
+ backgammonview.h \
+ canvasimageitem.h \
+ themedialog.h \
+ moveengine.h \
+ filedialog.h \
+ playerdialog.h \
+ aidialog.h \
+ rulesdialog.h \
+ definition.h
SOURCES = main.cpp \
- backgammon.cpp \
- canvasimageitem.cpp \
- themedialog.cpp \
- moveengine.cpp \
- filedialog.cpp \
- playerdialog.cpp \
- aidialog.cpp \
- rulesdialog.cpp \
- displaydialog.cpp \
- definition.cpp
+ backgammon.cpp \
+ backgammonview.cpp \
+ canvasimageitem.cpp \
+ themedialog.cpp \
+ moveengine.cpp \
+ filedialog.cpp \
+ playerdialog.cpp \
+ aidialog.cpp \
+ rulesdialog.cpp \
+ definition.cpp
TARGET = backgammon
INCLUDEPATH += $(OPIEDIR)/include
DEPENDPATH += $(OPIEDIR)/include
LIBS += -lqpe -lstdc++
DESTDIR = $(OPIEDIR)/bin
diff --git a/noncore/games/backgammon/backgammonview.h b/noncore/games/backgammon/backgammonview.h
index 52508e2..81f1973 100644
--- a/noncore/games/backgammon/backgammonview.h
+++ b/noncore/games/backgammon/backgammonview.h
@@ -12,7 +12,8 @@ public:
signals:
void mouse(int,int);
private:
void contentsMousePressEvent(QMouseEvent* e);
};
-#endif //BACKGAMMON_VIEW_H \ No newline at end of file
+#endif //BACKGAMMON_VIEW_H
+
diff --git a/noncore/games/backgammon/moveengine.cpp b/noncore/games/backgammon/moveengine.cpp
index 009c449..37b73a6 100644
--- a/noncore/games/backgammon/moveengine.cpp
+++ b/noncore/games/backgammon/moveengine.cpp
@@ -1,11 +1,11 @@
#include "moveengine.h"
#include <qmessagebox.h>
-
#include <qtimer.h>
+#include <stdlib.h>
MoveEngine::MoveEngine()
: QObject()
{
int offset=7;
int a=0; //counter variable