From 838baf3f99ec5ab81b063eb5449a3381d860f377 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 11 Jun 2011 04:58:26 +0000 Subject: TQt4 port kdegames This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kreversi/qreversigameview.h | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'kreversi/qreversigameview.h') diff --git a/kreversi/qreversigameview.h b/kreversi/qreversigameview.h index 97cc1738..628c4637 100644 --- a/kreversi/qreversigameview.h +++ b/kreversi/qreversigameview.h @@ -36,8 +36,8 @@ ******************************************************************* */ -#ifndef __QREVERSIGAMEVIEW__H__ -#define __QREVERSIGAMEVIEW__H__ +#ifndef __TQREVERSIGAMEVIEW__H__ +#define __TQREVERSIGAMEVIEW__H__ #include @@ -52,15 +52,16 @@ class KConfig; class TQLabel; -class QReversiGame; +class TQReversiGame; -class StatusWidget : public QWidget +class StatusWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - StatusWidget(const TQString &text, TQWidget *parent); + StatusWidget(const TQString &text, TQWidget *tqparent); void setText(const TQString &string); void setPixmap(const TQPixmap &pixmap); @@ -75,13 +76,14 @@ private: // The main game view -class QReversiGameView : public TQWidget { +class TQReversiGameView : public TQWidget { Q_OBJECT + TQ_OBJECT public: - QReversiGameView(TQWidget *parent, QReversiGame *game); - ~QReversiGameView(); + TQReversiGameView(TQWidget *tqparent, TQReversiGame *game); + ~TQReversiGameView(); // Proxy methods for the board view void showHint(Move move) { m_boardView->showHint(move); } @@ -102,7 +104,7 @@ public: void insertMove(TQString moveString) { m_movesView->insertItem(moveString); } void removeMove(int moveNum) { m_movesView->removeItem(moveNum); - updateStatus(); + updatetqStatus(); } void setCurrentMove(int moveNum) { m_movesView->setCurrentItem(moveNum); @@ -127,7 +129,7 @@ public slots: void moveMade(uint moveNum, Move &move); void updateView(); // Update the entire view. - void updateStatus(); // Update the status widgets (score) + void updatetqStatus(); // Update the status widgets (score) void updateBoard(bool force = FALSE); // Update the board. void updateMovelist(); // Update the move list. @@ -144,15 +146,15 @@ private: private: // Pointer to the game we are displaying - QReversiGame *m_game; // Pointer to the game object (not owner). + TQReversiGame *m_game; // Pointer to the game object (not owner). Color m_humanColor; // Widgets in the view. - QReversiBoardView *m_boardView; + TQReversiBoardView *m_boardView; TQListBox *m_movesView; - StatusWidget *m_blackStatus; - StatusWidget *m_whiteStatus; + StatusWidget *m_blacktqStatus; + StatusWidget *m_whitetqStatus; }; -- cgit v1.2.1