summaryrefslogtreecommitdiffstats
path: root/kreversi/qreversigameview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /kreversi/qreversigameview.h
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
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
Diffstat (limited to 'kreversi/qreversigameview.h')
-rw-r--r--kreversi/qreversigameview.h30
1 files changed, 16 insertions, 14 deletions
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 <tqlistbox.h>
@@ -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;
};