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 --- ktron/tron.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'ktron/tron.h') diff --git a/ktron/tron.h b/ktron/tron.h index ebfc1d56..188604d8 100644 --- a/ktron/tron.h +++ b/ktron/tron.h @@ -26,9 +26,9 @@ #include #endif -#include -#include -#include +#include +#include +#include #include #include @@ -48,11 +48,11 @@ class Tron : public QWidget Q_OBJECT public: - Tron(QWidget *parent=0, const char *name=0); + Tron(TQWidget *parent=0, const char *name=0); ~Tron(); void setActionCollection(KActionCollection*); void updatePixmap(); - void setBackgroundPix(QPixmap); + void setBackgroundPix(TQPixmap); void setComputerplayer(Player player, bool); bool isComputer(Player player); void setVelocity(int); @@ -80,21 +80,21 @@ protected: /** bitBltīs the rect that has to be updated from the * bufferpixmap on the screen and writes eventually text */ - void paintEvent(QPaintEvent *); + void paintEvent(TQPaintEvent *); /** resets game and creates a new playingfield */ - void resizeEvent(QResizeEvent *); - void keyPressEvent(QKeyEvent *); - void keyReleaseEvent(QKeyEvent *); + void resizeEvent(TQResizeEvent *); + void keyPressEvent(TQKeyEvent *); + void keyReleaseEvent(TQKeyEvent *); /** pauses game */ - void focusOutEvent(QFocusEvent *); + void focusOutEvent(TQFocusEvent *); private: /** Stores key shortcuts */ KActionCollection* actionCollection; /** Drawing buffer */ - QPixmap *pixmap; + TQPixmap *pixmap; /** The playingfield */ - QMemArray *playfield; + TQMemArray *playfield; /** game status flag */ bool gamePaused; /** game status flag */ @@ -107,11 +107,11 @@ private: int fieldHeight; /** Width of the playingfield in number of rects*/ int fieldWidth; - QTimer *timer; + TQTimer *timer; player players[2]; /** Backgroundpixmap **/ - QPixmap bgPix; + TQPixmap bgPix; /** time in ms between two moves */ int velocity; @@ -137,7 +137,7 @@ private: /** paints players at current player coordinates */ void paintPlayers(); /** draws a rect in current TronStyle at position x,y of the playingfield */ - void drawRect(QPainter & p, int x, int y); + void drawRect(TQPainter & p, int x, int y); /** emits gameEnds(Player) and displays the winner by changing color*/ void showWinner(Player winner); -- cgit v1.2.1