summaryrefslogtreecommitdiffstats
path: root/kbackgammon/kbgstatus.cpp
diff options
context:
space:
mode:
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;