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 /konquest/gameboard.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 'konquest/gameboard.h')
-rw-r--r-- | konquest/gameboard.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/konquest/gameboard.h b/konquest/gameboard.h index 5e3cddfa..4b30b0b1 100644 --- a/konquest/gameboard.h +++ b/konquest/gameboard.h @@ -1,7 +1,7 @@ #ifndef _GAMEBOARD_H_ #define _GAMEBOARD_H_ -#include <qwidget.h> +#include <tqwidget.h> #include "planet_info.h" #include "map_widget.h" @@ -26,12 +26,12 @@ class GameBoard : public QWidget Q_OBJECT public: - GameBoard( QWidget *parent ); + GameBoard( TQWidget *parent ); virtual ~GameBoard(); bool isGameInProgress(void) const { return gameInProgress; } -// virtual QSize sizeHint() const; +// virtual TQSize sizeHint() const; protected slots: void startNewGame(); @@ -54,7 +54,7 @@ signals: // Event Handlers //*************************************************************** protected: - virtual void keyPressEvent( QKeyEvent * ); + virtual void keyPressEvent( TQKeyEvent * ); private: void turn(); @@ -66,13 +66,13 @@ private: void doFleetArrival( AttackFleet *arrivingFleet ); void scanForSurvivors(); - void gameMsg(const QString &msg, Player *player = 0, Planet *planet = 0, Player *planetPlayer = 0); + void gameMsg(const TQString &msg, Player *player = 0, Planet *planet = 0, Player *planetPlayer = 0); void changeGameBoard( bool inPlay ); void cleanupGame(); Player *findWinner(); - QString playerString(Player *player = 0); + TQString playerString(Player *player = 0); //*************************************************************** // Game State information @@ -86,12 +86,12 @@ private: //*************************************************************** ConquestMap *mapWidget; PlanetInfo *planetInfo; - QLabel *gameMessage; - QLabel *turnCounter; - QPushButton *endTurn; - QLineEdit *shipCountEdit; - QLabel *splashScreen; - QTextEdit *msgWidget; + TQLabel *gameMessage; + TQLabel *turnCounter; + TQPushButton *endTurn; + TQLineEdit *shipCountEdit; + TQLabel *splashScreen; + TQTextEdit *msgWidget; //*************************************************************** |