summaryrefslogtreecommitdiffstats
path: root/kbackgammon/engines/fibs/kplayerlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbackgammon/engines/fibs/kplayerlist.cpp')
-rw-r--r--kbackgammon/engines/fibs/kplayerlist.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kbackgammon/engines/fibs/kplayerlist.cpp b/kbackgammon/engines/fibs/kplayerlist.cpp
index a928de7e..72714f4c 100644
--- a/kbackgammon/engines/fibs/kplayerlist.cpp
+++ b/kbackgammon/engines/fibs/kplayerlist.cpp
@@ -594,7 +594,7 @@ void KFibsPlayerList::showContextMenu(KListView *, TQListViewItem *i, const TQPo
if (i && d->mCol[tqStatus]->show)
d->mAct[KFibsPlayerListPrivate::BlindAct]->setText
- ((i->text(d->mCol[tqStatus]->index).tqcontains(d->mAbrv[Blind])) ?
+ ((i->text(d->mCol[tqStatus]->index).contains(d->mAbrv[Blind])) ?
i18n("Unblind %1").tqarg(d->mUser) : i18n("Blind %1").tqarg(d->mUser));
else
d->mAct[KFibsPlayerListPrivate::BlindAct]->setText(i18n("Blind"));
@@ -738,9 +738,9 @@ void KFibsPlayerList::changePlayer(const TQString &line)
if ((str_entry[j] = entry[j]) == "-")
str_entry[j] = "";
}
- str_entry[tqStatus].tqreplace(Ready, 1, ready[0] == '0' ? "-" : d->mAbrv[Ready]);
- str_entry[tqStatus].tqreplace(Away, 1, away [0] == '0' ? "-" : d->mAbrv[Away ]);
- str_entry[tqStatus].tqreplace(Blind, 1, "-");
+ str_entry[tqStatus].replace(Ready, 1, ready[0] == '0' ? "-" : d->mAbrv[Ready]);
+ str_entry[tqStatus].replace(Away, 1, away [0] == '0' ? "-" : d->mAbrv[Away ]);
+ str_entry[tqStatus].replace(Blind, 1, "-");
// disable drawing until the end of update
setUpdatesEnabled(false);
@@ -758,9 +758,9 @@ void KFibsPlayerList::changePlayer(const TQString &line)
i = new KFibsPlayerListLVI(this);
// count the KFibs and KBackgammon clients
- if (str_entry[Client].tqcontains("KFibs"))
+ if (str_entry[Client].contains("KFibs"))
d->mCount[0]++;
- else if (str_entry[Client].tqcontains(PROG_NAME))
+ else if (str_entry[Client].contains(PROG_NAME))
d->mCount[1]++;
// new entry requires an update to the player count
@@ -771,7 +771,7 @@ void KFibsPlayerList::changePlayer(const TQString &line)
found:
// getting here means the player is in the list - update private status
- str_entry[tqStatus].tqreplace(Blind,1,i->text(tqStatus).tqcontains
+ str_entry[tqStatus].replace(Blind,1,i->text(tqStatus).contains
(d->mAbrv[Blind]) ? d->mAbrv[Blind] : "-");
update:
@@ -794,9 +794,9 @@ void KFibsPlayerList::deletePlayer(const TQString &player)
TQListViewItemIterator it(this);
for ( ; it.current(); ++it) {
if (it.current()->text(0) == player) {
- if (it.current()->text(Client).tqcontains(PROG_NAME))
+ if (it.current()->text(Client).contains(PROG_NAME))
--d->mCount[1];
- else if (it.current()->text(Client).tqcontains("KFibs"))
+ else if (it.current()->text(Client).contains("KFibs"))
--d->mCount[0];
delete it.current();
updateCaption();
@@ -827,7 +827,7 @@ void KFibsPlayerList::changePlayertqStatus(const TQString &player, int stat, boo
/*
* Update the status flag
*/
- i->setText(tqStatus, i->text(tqStatus).tqreplace(stat, 1, (flag) ? d->mAbrv[stat] : "-"));
+ i->setText(tqStatus, i->text(tqStatus).replace(stat, 1, (flag) ? d->mAbrv[stat] : "-"));
}