summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/dialogs/kgamedialogconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/kgame/dialogs/kgamedialogconfig.cpp')
-rw-r--r--libkdegames/kgame/dialogs/kgamedialogconfig.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/libkdegames/kgame/dialogs/kgamedialogconfig.cpp b/libkdegames/kgame/dialogs/kgamedialogconfig.cpp
index 44eaa3c7..af0172ef 100644
--- a/libkdegames/kgame/dialogs/kgamedialogconfig.cpp
+++ b/libkdegames/kgame/dialogs/kgamedialogconfig.cpp
@@ -57,7 +57,7 @@ public:
KPlayer* mOwner;
};
-KGameDialogConfig::KGameDialogConfig(TQWidget* parent) : TQWidget(parent)
+KGameDialogConfig::KGameDialogConfig(TQWidget* tqparent) : TQWidget(tqparent)
{
d = new KGameDialogConfigPrivate;
}
@@ -116,13 +116,13 @@ public:
};
-KGameDialogNetworkConfig::KGameDialogNetworkConfig(TQWidget* parent)
- : KGameDialogConfig(parent)
+KGameDialogNetworkConfig::KGameDialogNetworkConfig(TQWidget* tqparent)
+ : KGameDialogConfig(tqparent)
{
// kdDebug(11001) << k_funcinfo << ": this=" << this << endl;
d = new KGameDialogNetworkConfigPrivate();
- TQVBoxLayout* topLayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint(), "toplayout");
+ TQVBoxLayout* topLayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint(), "toptqlayout");
TQHBoxLayout *hb = new TQHBoxLayout(topLayout, KDialog::spacingHint());
@@ -261,8 +261,8 @@ public:
TQVBoxLayout* mTopLayout;
};
-KGameDialogGeneralConfig::KGameDialogGeneralConfig(TQWidget* parent, bool initializeGUI)
- : KGameDialogConfig(parent)
+KGameDialogGeneralConfig::KGameDialogGeneralConfig(TQWidget* tqparent, bool initializeGUI)
+ : KGameDialogConfig(tqparent)
{
// kdDebug(11001) << k_funcinfo << ": this=" << this << endl;
d = new KGameDialogGeneralConfigPrivate;
@@ -295,7 +295,7 @@ void KGameDialogGeneralConfig::setPlayerName(const TQString& name)
TQString KGameDialogGeneralConfig::playerName() const
{
- return d->mName ? d->mName->text() : TQString::null;
+ return d->mName ? d->mName->text() : TQString();
}
void KGameDialogGeneralConfig::setOwner(KPlayer* p)
@@ -386,10 +386,10 @@ public:
// TODO: change ADMIN ID, remove CLIENTS, change MAXCLIENTS
-// we do everything here with QPushButtons as we want to wait a moment before
+// we do everything here with TQPushButtons as we want to wait a moment before
// continuing - the message must be sent over network first
-KGameDialogMsgServerConfig::KGameDialogMsgServerConfig(TQWidget* parent)
- : KGameDialogConfig(parent)
+KGameDialogMsgServerConfig::KGameDialogMsgServerConfig(TQWidget* tqparent)
+ : KGameDialogConfig(tqparent)
{
d = new KGameDialogMsgServerConfigPrivate;
@@ -465,12 +465,12 @@ void KGameDialogMsgServerConfig::slotChangeAdmin()
return;
}
//TODO
- Q_UINT32 newAdmin = 0;
+ TQ_UINT32 newAdmin = 0;
// newAdmin = ;
game()->electAdmin(newAdmin);
}
-void KGameDialogMsgServerConfig::removeClient(Q_UINT32 /*id*/)
+void KGameDialogMsgServerConfig::removeClient(TQ_UINT32 /*id*/)
{
//TODO
}
@@ -531,7 +531,7 @@ void KGameDialogMsgServerConfig::setHasMsgServer(bool has)
}
//TODO
// list all connections, data (max clients) and so on
- // cannot be done above (together with QPushButtons) as it is possible that
+ // cannot be done above (together with TQPushButtons) as it is possible that
// this client is ADMIN but not MASTER (i.e. doesn't own the messageserver)
}
@@ -547,8 +547,8 @@ public:
KGameChat* mChat;
};
-KGameDialogChatConfig::KGameDialogChatConfig(int chatMsgId, TQWidget* parent)
- : KGameDialogConfig(parent)
+KGameDialogChatConfig::KGameDialogChatConfig(int chatMsgId, TQWidget* tqparent)
+ : KGameDialogConfig(tqparent)
{
d = new KGameDialogChatConfigPrivate;
TQVBoxLayout* topLayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
@@ -599,8 +599,8 @@ public:
KListBox* mPlayerBox;
};
-KGameDialogConnectionConfig::KGameDialogConnectionConfig(TQWidget* parent)
- : KGameDialogConfig(parent)
+KGameDialogConnectionConfig::KGameDialogConnectionConfig(TQWidget* tqparent)
+ : KGameDialogConfig(tqparent)
{
//TODO: prevent player to ban himself
d = new KGameDialogConnectionConfigPrivate;
@@ -714,7 +714,7 @@ void KGameDialogConnectionConfig::slotPlayerLeftGame(KPlayer* p)
// disconnect first
this->disconnect(p);
if (!item(p)) {
- kdError(11001) << k_funcinfo << ": cannot find " << p->id()
+ kdError(11001) << k_funcinfo << ": cannot tqfind " << p->id()
<< " in list" << endl;
return;
}
@@ -743,8 +743,8 @@ void KGameDialogConnectionConfig::slotKickPlayerOut(TQListBoxItem* item)
return;
}
- if (KMessageBox::questionYesNo(this, i18n("Do you want to ban player \"%1\" from the game?").arg(
- p->name()), TQString::null, i18n("Ban Player"), i18n("Do Not Ban")) == KMessageBox::Yes) {
+ if (KMessageBox::questionYesNo(this, i18n("Do you want to ban player \"%1\" from the game?").tqarg(
+ p->name()), TQString(), i18n("Ban Player"), i18n("Do Not Ban")) == KMessageBox::Yes) {
kdDebug(11001) << "will remove player " << p << endl;
game()->removePlayer(p);
// d->mPlayerBox->removeItem(d->mPlayerBox->index(item)); // should be done by signalPlayerLeftGame