summaryrefslogtreecommitdiffstats
path: root/libksirtet/base/board.h
diff options
context:
space:
mode:
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;