summaryrefslogtreecommitdiffstats
path: root/kbackgammon/kbgstatus.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /kbackgammon/kbgstatus.h
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbackgammon/kbgstatus.h')
-rw-r--r--kbackgammon/kbgstatus.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/kbackgammon/kbgstatus.h b/kbackgammon/kbgstatus.h
index afcc2f6a..05348157 100644
--- a/kbackgammon/kbgstatus.h
+++ b/kbackgammon/kbgstatus.h
@@ -43,10 +43,11 @@
* @author Jens Hoefkens <jens@hoefkens.com>
* @version $Id$
*/
-class KBgStatus : public QObject
+class KBgtqStatus : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
@@ -65,27 +66,27 @@ class KBgStatus : public QObject
* The default constructor initializes the status to an "empty"
* state. The board and dice are empty and the cube shows 1.
*/
- KBgStatus();
+ KBgtqStatus();
/**
* Constructor from a FIBS rawboard string
*/
- KBgStatus(const TQString &rawboard);
+ KBgtqStatus(const TQString &rawboard);
/**
* Copy constructor
*/
- KBgStatus(const KBgStatus &rhs);
+ KBgtqStatus(const KBgtqStatus &rhs);
/**
* Assignment operator
*/
- KBgStatus& operator=(const KBgStatus &rhs);
+ KBgtqStatus& operator=(const KBgtqStatus &rhs);
/**
* Destructor
*/
- virtual ~KBgStatus();
+ virtual ~KBgtqStatus();
/*
@@ -156,7 +157,7 @@ class KBgStatus : public QObject
/*
* Return the name of player w. If w is out of bounds or if
- * the player names have not been set, TQString::null is
+ * the player names have not been set, TQString() is
* returned.
*/
TQString player(const int &w = US) const;
@@ -231,7 +232,7 @@ class KBgStatus : public QObject
/*
* Set the n-th dice of player w to v. Nothing is done if w is
* invalid or if n is out of bounds. If v is invalid, the
- * value zero is assigned (i.e., the dice is invalidated).
+ * value zero is assigned (i.e., the dice is tqinvalidated).
*/
void setDice(const int &w, const int &n, const int &v);
@@ -288,12 +289,12 @@ class KBgStatus : public QObject
* anywhere starting from start or later into direction
* dir in the game given by sc.
*/
- bool movePossible(KBgStatus &sc, int a, int start, int dir) const;
+ bool movePossible(KBgtqStatus &sc, int a, int start, int dir) const;
/*
* Copy constr. and assignment share a lot of code.
*/
- void copy(const KBgStatus &rhs);
+ void copy(const KBgtqStatus &rhs);
/*
* Private variables with self-expalanatory names.