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 /libksirtet/base/field.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 'libksirtet/base/field.h')
-rw-r--r-- | libksirtet/base/field.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libksirtet/base/field.h b/libksirtet/base/field.h index d006a052..f4478ad5 100644 --- a/libksirtet/base/field.h +++ b/libksirtet/base/field.h @@ -18,39 +18,39 @@ class KCanvasRootPixmap; class KDE_EXPORT BaseField { public: - BaseField(QWidget *widget); + BaseField(TQWidget *widget); virtual ~BaseField() {} virtual KExtHighscore::Score currentScore() const = 0; - static void gameOver(const KExtHighscore::Score &, QWidget *parent); + static void gameOver(const KExtHighscore::Score &, TQWidget *parent); virtual void setArcade(); bool isArcade() const; protected: - QGridLayout *top, *lcds; + TQGridLayout *top, *lcds; KGameLCD *showScore; KGameLCDList *removedList, *scoreList; BaseBoard *board; virtual void scoreUpdated(); virtual void init(bool AI, bool multiplayer, bool server, bool first, - const QString &name); + const TQString &name); virtual void start(const GTInitData &); virtual void pause(bool pause); virtual void stop(bool gameover); virtual void settingsChanged(); private: - QWidget *_widget; + TQWidget *_widget; struct Flags { bool AI, multiplayer, server, first; }; Flags _flags; uint _arcadeStage; - QVBoxLayout *_boardLayout; - QLabel *_label; - QButton *_button; + TQVBoxLayout *_boardLayout; + TQLabel *_label; + TQButton *_button; KCanvasRootPixmap *_boardRootPixmap; KExtHighscore::Score _firstScore, _lastScore; @@ -59,8 +59,8 @@ class KDE_EXPORT BaseField static const char *BUTTON_TEXTS[NB_BUTTON_TYPE]; bool hasButton() const { return _flags.server && _flags.first; } - void setMessage(const QString &label, ButtonType); - void hideMessage() { setMessage(QString::null, NB_BUTTON_TYPE); } + void setMessage(const TQString &label, ButtonType); + void hideMessage() { setMessage(TQString::null, NB_BUTTON_TYPE); } }; #endif |