summaryrefslogtreecommitdiffstats
path: root/kbackgammon/kbgstatus.cpp
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 /kbackgammon/kbgstatus.cpp
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 'kbackgammon/kbgstatus.cpp')
-rw-r--r--kbackgammon/kbgstatus.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kbackgammon/kbgstatus.cpp b/kbackgammon/kbgstatus.cpp
index 1215324e..4f5db3c0 100644
--- a/kbackgammon/kbgstatus.cpp
+++ b/kbackgammon/kbgstatus.cpp
@@ -29,7 +29,7 @@
/*
* Parse a rawboard description from FIBS and initialize members.
*/
-KBgStatus::KBgStatus(const QString &rawboard)
+KBgStatus::KBgStatus(const TQString &rawboard)
{
/*
* This is the format string from hell...
@@ -45,7 +45,7 @@ KBgStatus::KBgStatus(const QString &rawboard)
char opponent[100], player[100];
- QString cap;
+ TQString cap;
int board[26], ldice[2][2], maydouble[2], scratch[4], onhome[2], onbar[2];
int points[2];
@@ -117,7 +117,7 @@ KBgStatus::KBgStatus(const QString &rawboard)
* and empty dice.
*/
KBgStatus::KBgStatus()
- : QObject()
+ : TQObject()
{
/*
* Initialize members
@@ -131,7 +131,7 @@ KBgStatus::KBgStatus()
setHome (i, 0);
setBar (i, 0);
setPoints(i, -1);
- setPlayer(i, QString::null);
+ setPlayer(i, TQString::null);
}
setColor(White, US);
setCube(1, BOTH); // also initializes maydouble
@@ -147,7 +147,7 @@ KBgStatus::KBgStatus()
* Copy constructor calls private utility function.
*/
KBgStatus::KBgStatus(const KBgStatus &rhs)
- : QObject()
+ : TQObject()
{
copy(rhs);
}
@@ -244,9 +244,9 @@ int KBgStatus::points(const int& w) const
return ((w == US || w == THEM) ? points_[w] : -1);
}
-QString KBgStatus::player(const int &w) const
+TQString KBgStatus::player(const int &w) const
{
- return ((w == US || w == THEM) ? player_[w] : QString::null);
+ return ((w == US || w == THEM) ? player_[w] : TQString::null);
}
int KBgStatus::length() const
@@ -343,7 +343,7 @@ void KBgStatus::setPoints(const int &w, const int &p)
points_[w] = p;
}
-void KBgStatus::setPlayer(const int &w, const QString &name)
+void KBgStatus::setPlayer(const int &w, const TQString &name)
{
if (w == US || w == THEM)
player_[w] = name;