diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /kshisen/board.h | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-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 'kshisen/board.h')
-rw-r--r-- | kshisen/board.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kshisen/board.h b/kshisen/board.h index c38fba57..2413d8d4 100644 --- a/kshisen/board.h +++ b/kshisen/board.h @@ -72,12 +72,12 @@ class Board : public QWidget Q_OBJECT public: - Board(QWidget *parent = 0, const char *name=0); + Board(TQWidget *parent = 0, const char *name=0); ~Board(); - virtual void paintEvent(QPaintEvent *); - virtual void mousePressEvent(QMouseEvent *); - virtual void resizeEvent(QResizeEvent*); + virtual void paintEvent(TQPaintEvent *); + virtual void mousePressEvent(TQMouseEvent *); + virtual void resizeEvent(TQResizeEvent*); void setDelay(int); int getDelay() const; @@ -89,7 +89,7 @@ public: void setSize(int x, int y); void resizeBoard(); - QSize unscaledSize() const; + TQSize unscaledSize() const; void newGame(); void setShuffle(int); int getShuffle() const; @@ -134,7 +134,7 @@ private slots: void gravity(int, bool); protected: - virtual QSize sizeHint() const; + virtual TQSize sizeHint() const; private: // functions void initBoard(); @@ -151,7 +151,7 @@ private: // functions bool findSimplePath(int x1, int y1, int x2, int y2, Path& p) const; bool isTileHighlighted(int x, int y) const; void drawConnection(int timeout); - QPoint midCoord(int x, int y) const; + TQPoint midCoord(int x, int y) const; void marked(int x, int y); void madeMove(int x1, int y1, int x2, int y2); @@ -163,8 +163,8 @@ private: KRandomSequence random; - QPtrList<Move> _undo; - QPtrList<Move> _redo; + TQPtrList<Move> _undo; + TQPtrList<Move> _redo; int undraw_timer_id; int mark_x; |