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 /ksnake/rattler.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 'ksnake/rattler.h')
-rw-r--r-- | ksnake/rattler.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ksnake/rattler.h b/ksnake/rattler.h index 2922dfe6..da0c13bd 100644 --- a/ksnake/rattler.h +++ b/ksnake/rattler.h @@ -26,7 +26,7 @@ #ifndef RATTLER_H #define RATTLER_H -#include <qwidget.h> +#include <tqwidget.h> #include <kaction.h> #include "ball.h" #include "snake.h" @@ -45,7 +45,7 @@ class Rattler : public QWidget Q_OBJECT public: - Rattler ( QWidget *parent=0, const char *name=0 ); + Rattler ( TQWidget *parent=0, const char *name=0 ); ~Rattler(); void setActionCollection(KActionCollection *a){ actionCollection = a;} @@ -59,7 +59,7 @@ public: void reloadRoomPixmap(); - QStringList backgroundPixmaps; + TQStringList backgroundPixmaps; public slots: void closeGate(int); @@ -101,12 +101,12 @@ signals: void advance(); protected: - void timerEvent( QTimerEvent * ); - void paintEvent( QPaintEvent * ); - void keyPressEvent( QKeyEvent * ); - void mousePressEvent( QMouseEvent * ); - void focusOutEvent( QFocusEvent * ) { ; } - void focusInEvent( QFocusEvent * ) { ; } + void timerEvent( TQTimerEvent * ); + void paintEvent( TQPaintEvent * ); + void keyPressEvent( TQKeyEvent * ); + void mousePressEvent( TQMouseEvent * ); + void focusOutEvent( TQFocusEvent * ) { ; } + void focusInEvent( TQFocusEvent * ) { ; } KActionCollection *actionCollection; private: @@ -125,12 +125,12 @@ private: int direction; - QPtrList<Ball> *balls; + TQPtrList<Ball> *balls; void restartBalls(bool); int numBalls; int ballsAI; - QPtrList<CompuSnake> *computerSnakes; + TQPtrList<CompuSnake> *computerSnakes; void restartComputerSnakes(bool); int numSnakes; int snakesAI; @@ -147,7 +147,7 @@ private: void score(int); void cleanLabel(); - void resizeEvent( QResizeEvent * ); + void resizeEvent( TQResizeEvent * ); }; |