summaryrefslogtreecommitdiffstats
path: root/ktuberling/playground.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 /ktuberling/playground.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 'ktuberling/playground.h')
-rw-r--r--ktuberling/playground.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/ktuberling/playground.h b/ktuberling/playground.h
index bdb7e47f..146ffe2c 100644
--- a/ktuberling/playground.h
+++ b/ktuberling/playground.h
@@ -20,18 +20,19 @@
class TQDomDocument;
class TopLevel;
-class PlayGround : public QWidget
+class PlayGround : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- PlayGround(TopLevel *parent, const char *name, uint selectedGameboard);
+ PlayGround(TopLevel *tqparent, const char *name, uint selectedGameboard);
~PlayGround();
void reset();
void change(uint selectedGameboard);
- void repaintAll();
+ void tqrepaintAll();
bool undo();
bool redo();
bool loadFrom(const TQString &name);
@@ -50,8 +51,8 @@ protected:
private:
- bool registerPlayGrounds(TQDomDocument &layoutDocument);
- bool loadPlayGround(TQDomDocument &layoutDocument, uint toLoad);
+ bool registerPlayGrounds(TQDomDocument &tqlayoutDocument);
+ bool loadPlayGround(TQDomDocument &tqlayoutDocument, uint toLoad);
void loadFailure();
void setupGeometry();
bool zone(TQPoint &position);
@@ -61,7 +62,7 @@ private:
private:
TQPixmap gameboard; // Picture of the game board
- TQBitmap masks; // Pictures of the objects' shapes
+ TQBitmap tqmasks; // Pictures of the objects' tqshapes
TQRect editableArea; // Part of the gameboard where the player can lay down objects
TQString menuItem, // Menu item describing describing this gameboard
editableSound; // Sound associated with this area
@@ -72,7 +73,7 @@ private:
TQString *textsList, // List of the message numbers associated with categories
*soundsList; // List of sounds associated with each object
- TQCursor *draggedCursor; // Cursor's shape for currently dragged object
+ TQCursor *draggedCursor; // Cursor's tqshape for currently dragged object
ToDraw draggedObject; // Object currently dragged
int draggedZOrder; // Z-order (in to-draw buffer) of this object