summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/wizard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libksirtet/lib/wizard.cpp')
-rw-r--r--libksirtet/lib/wizard.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/libksirtet/lib/wizard.cpp b/libksirtet/lib/wizard.cpp
index 19d9de34..a059cfa2 100644
--- a/libksirtet/lib/wizard.cpp
+++ b/libksirtet/lib/wizard.cpp
@@ -32,8 +32,8 @@
#define MAX_USER_PORT 65535
MPWizard::MPWizard(const MPGameInfo &gi, ConnectionData &_cd,
- TQWidget *parent, const char *name)
-: KWizard(parent, name, TRUE), cd(_cd)
+ TQWidget *tqparent, const char *name)
+: KWizard(tqparent, name, TRUE), cd(_cd)
{
// setupTypePage(); // #### REMOVE NETWORK GAMES UNTIL FIXED
type = Local;
@@ -81,10 +81,10 @@ void MPWizard::setupLocalPage(const MPGameInfo &gi)
localPage->setMargin(KDialogBase::marginHint());
wl = new WidgetList<PlayerLine>(5, localPage);
- TQSignalMapper *husm = new TQSignalMapper(this);
+ TQSignalMapper *husm = new TQSignalMapper(TQT_TQOBJECT(this));
if (gi.humanSettingSlot) connect(husm, TQT_SIGNAL(mapped(int)),
gi.humanSettingSlot);
- TQSignalMapper *aism = new TQSignalMapper(this);
+ TQSignalMapper *aism = new TQSignalMapper(TQT_TQOBJECT(this));
if (gi.AISettingSlot) connect(aism, TQT_SIGNAL(mapped(int)), gi.AISettingSlot);
KConfigGroupSaver cg(kapp->config(), MP_GROUP);
@@ -94,17 +94,17 @@ void MPWizard::setupLocalPage(const MPGameInfo &gi)
Q_ASSERT( gi.maxNbLocalPlayers>0 );
for (uint i=0; i<gi.maxNbLocalPlayers; i++) {
type = (PlayerComboBox::Type)
- cg.config()->readNumEntry(TQString(MP_PLAYER_TYPE).arg(i),
+ cg.config()->readNumEntry(TQString(MP_PLAYER_TYPE).tqarg(i),
(i==0 ? PlayerComboBox::Human : PlayerComboBox::None));
- n = cg.config()->readEntry(TQString(MP_PLAYER_NAME).arg(i),
- i18n("Player #%1").arg(i));
+ n = cg.config()->readEntry(TQString(MP_PLAYER_NAME).tqarg(i),
+ i18n("Player #%1").tqarg(i));
pl = new PlayerLine(type, n, gi.humanSettingSlot, gi.AISettingSlot,
i!=0, gi.AIAllowed, wl);
connect(pl, TQT_SIGNAL(typeChanged(int)), TQT_SLOT(lineTypeChanged(int)));
- husm->setMapping(pl, i);
+ husm->setMapping(TQT_TQOBJECT(pl), i);
connect(pl, TQT_SIGNAL(setHuman()), husm, TQT_SLOT(map()));
- aism->setMapping(pl, i);
+ aism->setMapping(TQT_TQOBJECT(pl), i);
connect(pl, TQT_SIGNAL(setAI()), aism, TQT_SLOT(map()));
wl->append(pl);
}
@@ -122,7 +122,7 @@ void MPWizard::setupLocalPage(const MPGameInfo &gi)
TQString MPWizard::name(uint i) const
{
TQString s = wl->widget(i)->name();
- if ( s.length()==0 ) s = i18n("Player #%1").arg(i);
+ if ( s.length()==0 ) s = i18n("Player #%1").tqarg(i);
return s;
}
@@ -177,7 +177,7 @@ void MPWizard::accept()
// do lookup
int res = socket->lookup();
if ( checkSocket(res, socket, i18n("Error looking up for \"%1\"")
- .arg(host), this) ) {
+ .tqarg(host), this) ) {
delete socket;
return;
}
@@ -206,9 +206,9 @@ void MPWizard::accept()
cg.config()->writeEntry(MP_GAMETYPE, (int)type);
for (uint i=0; i<wl->size(); i++) {
- cg.config()->writeEntry(TQString(MP_PLAYER_TYPE).arg(i),
+ cg.config()->writeEntry(TQString(MP_PLAYER_TYPE).tqarg(i),
(int)wl->widget(i)->type());
- cg.config()->writeEntry(TQString(MP_PLAYER_NAME).arg(i), name(i));
+ cg.config()->writeEntry(TQString(MP_PLAYER_NAME).tqarg(i), name(i));
}
KWizard::accept();