summaryrefslogtreecommitdiffstats
path: root/kbackgammon/engines/generic
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/engines/generic
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/engines/generic')
-rw-r--r--kbackgammon/engines/generic/kbgengine.cpp6
-rw-r--r--kbackgammon/engines/generic/kbgengine.h14
2 files changed, 11 insertions, 9 deletions
diff --git a/kbackgammon/engines/generic/kbgengine.cpp b/kbackgammon/engines/generic/kbgengine.cpp
index 59c19e2f..ac217bd0 100644
--- a/kbackgammon/engines/generic/kbgengine.cpp
+++ b/kbackgammon/engines/generic/kbgengine.cpp
@@ -31,10 +31,10 @@
/*
- * Constructor initializes the QObject
+ * Constructor initializes the TQObject
*/
-KBgEngine::KBgEngine(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
- : TQObject(parent, name->local8Bit())
+KBgEngine::KBgEngine(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
+ : TQObject(tqparent, name->local8Bit())
{
menu = pmenu;
cl = -1;
diff --git a/kbackgammon/engines/generic/kbgengine.h b/kbackgammon/engines/generic/kbgengine.h
index d254a910..c43b31b5 100644
--- a/kbackgammon/engines/generic/kbgengine.h
+++ b/kbackgammon/engines/generic/kbgengine.h
@@ -35,7 +35,7 @@ class TQPopupMenu;
class KDialogBase;
-class KBgStatus;
+class KBgtqStatus;
/**
*
@@ -58,16 +58,18 @@ class KBgStatus;
* @author Jens Hoefkens <jens@hoefkens.com>
*
*/
-class KBgEngine:public QObject
+class KBgEngine:public TQObject
{
- Q_OBJECT public:
+ Q_OBJECT
+ TQ_OBJECT
+public:
enum Command { Redo, Undo, Roll, Cube, Done, Load };
/**
* Constructor
*/
- KBgEngine (TQWidget * parent = 0, TQString * name = 0, TQPopupMenu * pmenu = 0);
+ KBgEngine (TQWidget * tqparent = 0, TQString * name = 0, TQPopupMenu * pmenu = 0);
/**
* Destructor
@@ -247,12 +249,12 @@ signals:
/**
* Emit the most recent game state
*/
- void newState (const KBgStatus &);
+ void newState (const KBgtqStatus &);
/**
* Tell the board that we need the current state of the board.
*/
- void getState (KBgStatus *);
+ void getState (KBgtqStatus *);
/**
* Starts/ends the edit mode of the board