summaryrefslogtreecommitdiffstats
path: root/kreversi/qreversigameview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /kreversi/qreversigameview.h
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-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 'kreversi/qreversigameview.h')
-rw-r--r--kreversi/qreversigameview.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/kreversi/qreversigameview.h b/kreversi/qreversigameview.h
index a3059a25..59855fa9 100644
--- a/kreversi/qreversigameview.h
+++ b/kreversi/qreversigameview.h
@@ -40,7 +40,7 @@
#define __QREVERSIGAMEVIEW__H__
-#include <qlistbox.h>
+#include <tqlistbox.h>
#include "Score.h"
#include "Move.h"
@@ -60,27 +60,27 @@ class StatusWidget : public QWidget
Q_OBJECT
public:
- StatusWidget(const QString &text, QWidget *parent);
+ StatusWidget(const TQString &text, TQWidget *parent);
- void setText(const QString &string);
- void setPixmap(const QPixmap &pixmap);
+ void setText(const TQString &string);
+ void setPixmap(const TQPixmap &pixmap);
void setScore(uint score);
private:
- QLabel *m_textLabel;
- QLabel *m_pixLabel;
- QLabel *m_scoreLabel;
+ TQLabel *m_textLabel;
+ TQLabel *m_pixLabel;
+ TQLabel *m_scoreLabel;
};
// The main game view
-class QReversiGameView : public QWidget {
+class QReversiGameView : public TQWidget {
Q_OBJECT
public:
- QReversiGameView(QWidget *parent, QReversiGame *game);
+ QReversiGameView(TQWidget *parent, QReversiGame *game);
~QReversiGameView();
// Proxy methods for the board view
@@ -94,12 +94,12 @@ public:
void setAnimationSpeed(uint speed){m_boardView->setAnimationSpeed(speed);}
// To get the pixmap for the status view
- QPixmap chipPixmap(Color color, uint size) const
+ TQPixmap chipPixmap(Color color, uint size) const
{ return m_boardView->chipPixmap(color, size); }
// Proxy methods for the movelist
// FIXME: Not all of these need to be externally reachable
- void insertMove(QString moveString) { m_movesView->insertItem(moveString); }
+ void insertMove(TQString moveString) { m_movesView->insertItem(moveString); }
void removeMove(int moveNum) {
m_movesView->removeItem(moveNum);
updateStatus();
@@ -150,7 +150,7 @@ private:
// Widgets in the view.
QReversiBoardView *m_boardView;
- QListBox *m_movesView;
+ TQListBox *m_movesView;
StatusWidget *m_blackStatus;
StatusWidget *m_whiteStatus;
};