diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
commit | 838baf3f99ec5ab81b063eb5449a3381d860f377 (patch) | |
tree | dd31abcfde08ca92e4623b8f50b3d762a87c997a /kbounce/game.h | |
parent | 2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff) | |
download | tdegames-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 'kbounce/game.h')
-rw-r--r-- | kbounce/game.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/kbounce/game.h b/kbounce/game.h index 1f66c288..d07516de 100644 --- a/kbounce/game.h +++ b/kbounce/game.h @@ -35,7 +35,7 @@ class JezzField; #define FIELD_WIDTH 32 #define FIELD_HEIGHT 20 -class Ball : public QCanvasSprite +class Ball : public TQCanvasSprite { public: Ball(TQCanvasPixmapArray* array, TQCanvas* canvas); @@ -50,14 +50,15 @@ class Ball : public QCanvasSprite }; -class Wall : public QObject +class Wall : public TQObject { Q_OBJECT + TQ_OBJECT public: enum Direction { Up, Down, Left, Right }; Wall( JezzField *field, int x, int y, Direction dir, int tile, - TQObject *parent=0, const char *name=0 ); + TQObject *tqparent=0, const char *name=0 ); void finish(); void fill( bool black ); @@ -83,11 +84,12 @@ private: }; -class JezzField : public QCanvas +class JezzField : public TQCanvas { Q_OBJECT + TQ_OBJECT public: - JezzField( const TQPixmap &tiles, const TQPixmap &background, TQObject* parent = 0, const char* name = 0 ); + JezzField( const TQPixmap &tiles, const TQPixmap &background, TQObject* tqparent = 0, const char* name = 0 ); void setGameTile( int x, int y, bool black ); void setBackground( const TQPixmap &background ); @@ -108,11 +110,12 @@ private: }; -class JezzView : public QCanvasView +class JezzView : public TQCanvasView { Q_OBJECT + TQ_OBJECT public: - JezzView(TQCanvas* viewing=0, TQWidget* parent=0, const char* name=0, WFlags f=0); + JezzView(TQCanvas* viewing=0, TQWidget* tqparent=0, const char* name=0, WFlags f=0); signals: void buildWall( int x, int y, bool vertical ); @@ -125,12 +128,13 @@ private: }; -class JezzGame : public QWidget +class JezzGame : public TQWidget { Q_OBJECT + TQ_OBJECT public: - JezzGame( const TQPixmap &background, int ballNum, TQWidget *parent=0, const char *name=0 ); + JezzGame( const TQPixmap &background, int ballNum, TQWidget *tqparent=0, const char *name=0 ); ~JezzGame(); int percent(); |