From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libksirtet/base/board.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libksirtet/base/board.h') 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 -#include +#include +#include #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 findGroups(KGrid2D::Square &field, uint minSize, + TQMemArray findGroups(KGrid2D::Square &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; -- cgit v1.2.1