summaryrefslogtreecommitdiffstats
path: root/libksirtet/base/board.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /libksirtet/base/board.h
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libksirtet/base/board.h')
-rw-r--r--libksirtet/base/board.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/libksirtet/base/board.h b/libksirtet/base/board.h
index 443c6532..7be2a4ec 100644
--- a/libksirtet/base/board.h
+++ b/libksirtet/base/board.h
@@ -1,8 +1,8 @@
#ifndef BASE_BOARD_H
#define BASE_BOARD_H
-#include <qtimer.h>
-#include <qcanvas.h>
+#include <tqtimer.h>
+#include <tqcanvas.h>
#include "gtetris.h"
@@ -16,9 +16,9 @@ class KDE_EXPORT FixedCanvasView : public QCanvasView
{
Q_OBJECT
public:
- FixedCanvasView(QWidget *parent = 0, const char *name = 0);
+ FixedCanvasView(TQWidget *parent = 0, const char *name = 0);
- virtual QSize sizeHint() const;
+ virtual TQSize sizeHint() const;
public slots:
virtual void adjustSize();
@@ -38,7 +38,7 @@ class KDE_EXPORT BaseBoard : public FixedCanvasView, public GenericTetris
static const DirectionData DIRECTION_DATA[Nb_Direction];
public:
- BaseBoard(bool graphic, QWidget *parent);
+ BaseBoard(bool graphic, TQWidget *parent);
virtual ~BaseBoard();
void copy(const GenericTetris &);
@@ -93,7 +93,7 @@ class KDE_EXPORT BaseBoard : public FixedCanvasView, public GenericTetris
void partialBlockFall(const KGrid2D::Coord &src, const KGrid2D::Coord &dest);
// return the sizes of the groups (>=minSize)
- QMemArray<uint> findGroups(KGrid2D::Square<int> &field, uint minSize,
+ TQMemArray<uint> findGroups(KGrid2D::Square<int> &field, uint minSize,
bool exitAtFirstFound = false) const;
// find group size and put -1 in the corresponding blocks (these blocks
// should be 0 at start)
@@ -107,13 +107,13 @@ class KDE_EXPORT BaseBoard : public FixedCanvasView, public GenericTetris
void updateScore(uint newScore);
virtual void showBoard(bool show);
- void showCanvas(QCanvas *c, bool show);
+ void showCanvas(TQCanvas *c, bool show);
enum BoardState { GameOver, Normal, Paused,
DropDown, BeforeGlue, AfterGlue, BeforeRemove,
AfterRemove, AfterGift };
BoardState state, _oldState;
- QTimer timer;
+ TQTimer timer;
SequenceArray *sequences;
BlockInfo *main, *_next;
uint loop;