From 838baf3f99ec5ab81b063eb5449a3381d860f377 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 11 Jun 2011 04:58:26 +0000 Subject: 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 --- kbounce/game.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'kbounce/game.h') 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(); -- cgit v1.2.1