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 --- kpoker/kpoker.h | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'kpoker/kpoker.h') diff --git a/kpoker/kpoker.h b/kpoker/kpoker.h index 21a41ebc..cd0bd42a 100644 --- a/kpoker/kpoker.h +++ b/kpoker/kpoker.h @@ -20,8 +20,8 @@ // QT includes -#include -#include +#include +#include // KDE includes #include @@ -158,8 +158,8 @@ public: int m_pot; // The amount of money people have bet. // The players in the game. - QPtrList m_activePlayers; // players still in the round - QPtrList m_removedPlayers; // players out of this round + TQPtrList m_activePlayers; // players still in the round + TQPtrList m_removedPlayers; // players out of this round }; @@ -172,10 +172,10 @@ class kpok : public QWidget Q_OBJECT public: - kpok(QWidget * parent = 0, const char *name = 0); + kpok(TQWidget * parent = 0, const char *name = 0); virtual ~kpok(); - QString getName (int playerNr); + TQString getName (int playerNr); void paintCash(); bool isDirty() const { return m_game.isDirty(); } @@ -191,9 +191,9 @@ class kpok : public QWidget bool getAdjust() const { return adjust; } signals: - void changeLastHand(const QString &newHand, bool lastHand = true); + void changeLastHand(const TQString &newHand, bool lastHand = true); void showClickToHold(bool show); - void statusBarMessage(QString); + void statusBarMessage(TQString); void clearStatusBar(); protected: @@ -202,11 +202,11 @@ class kpok : public QWidget void drawCards(PokerPlayer* p, bool skip[]); void newRound(); void noMoney(); - void paintEvent( QPaintEvent * ); - void playSound(const QString &filename); + void paintEvent( TQPaintEvent * ); + void playSound(const TQString &filename); void setBetButtonEnabled(bool enabled); - void setHand(const QString& newHand, bool lastHand = true); - void setLastWinner(const QString& lastWinner); + void setHand(const TQString& newHand, bool lastHand = true); + void setLastWinner(const TQString& lastWinner); void startBlinking(); void stopBlinking(); void stopDrawing(); @@ -215,7 +215,7 @@ class kpok : public QWidget void bet(); - void displayWin(const QString& hand, int cashWon); + void displayWin(const TQString& hand, int cashWon); /** * Displays the winner, adds the pot to his money @@ -325,14 +325,14 @@ class kpok : public QWidget int drawDelay; // Graphical layout. - QVBoxLayout *topLayout; - QHBoxLayout *inputLayout; - QLabel *potLabel; + TQVBoxLayout *topLayout; + TQHBoxLayout *inputLayout; + TQLabel *potLabel; BetBox *betBox; - QPushButton *drawButton; // the main Button - QLabel *wonLabel; // the winner - QLabel *clickToHold; - QWidget *mWonWidget; + TQPushButton *drawButton; // the main Button + TQLabel *wonLabel; // the winner + TQLabel *clickToHold; + TQWidget *mWonWidget; PlayerBox **playerBox; //one box per player @@ -342,9 +342,9 @@ class kpok : public QWidget // Other stuff KRandomSequence m_random; - QTimer *blinkTimer; // the winning cards will blink - QTimer *drawTimer; // delay between drawing of the cards - QTimer *waveTimer; // for displaying of the win (if winner == human) + TQTimer *blinkTimer; // the winning cards will blink + TQTimer *drawTimer; // delay between drawing of the cards + TQTimer *waveTimer; // for displaying of the win (if winner == human) bool adjust; // allow user to adjust the bet. int drawStat; // status of drawing (which card already was drawn etc. @@ -358,7 +358,7 @@ class kpok : public QWidget bool waveActive; int fCount; - QString lastHandText; + TQString lastHandText; }; #endif -- cgit v1.2.1