summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/dialogs/kgamedialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/kgame/dialogs/kgamedialog.cpp')
-rw-r--r--libkdegames/kgame/dialogs/kgamedialog.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/libkdegames/kgame/dialogs/kgamedialog.cpp b/libkdegames/kgame/dialogs/kgamedialog.cpp
index f589333e..c03df4ff 100644
--- a/libkdegames/kgame/dialogs/kgamedialog.cpp
+++ b/libkdegames/kgame/dialogs/kgamedialog.cpp
@@ -64,17 +64,17 @@ public:
};
KGameDialog::KGameDialog(KGame* g, KPlayer* owner, const TQString& title,
- TQWidget* tqparent, bool modal)
+ TQWidget* parent, bool modal)
: KDialogBase(Tabbed, title, Ok|Default|Apply,
- Ok, tqparent, 0, modal, true)
+ Ok, parent, 0, modal, true)
{
init(g, owner);
}
KGameDialog::KGameDialog(KGame* g, KPlayer* owner, const TQString& title,
- TQWidget* tqparent, long initConfigs, int chatMsgId, bool modal)
+ TQWidget* parent, long initConfigs, int chatMsgId, bool modal)
: KDialogBase(Tabbed, title, Ok|Default|Apply,
- Ok, tqparent, 0, modal, true)
+ Ok, parent, 0, modal, true)
{
init(g, owner);
if ((ConfigOptions)initConfigs!=NoConfig) {
@@ -165,34 +165,34 @@ void KGameDialog::addMsgServerConfig(KGameDialogMsgServerConfig* msgConf)
d->mMsgServerPage = addConfigPage(msgConf, i18n("&Message Server"));
}
-void KGameDialog::addChatWidget(KGameDialogChatConfig* chat, TQVBox* tqparent)
+void KGameDialog::addChatWidget(KGameDialogChatConfig* chat, TQVBox* parent)
{
if (!chat) {
return;
}
- if (!tqparent) {
- tqparent = d->mGamePage;
+ if (!parent) {
+ parent = d->mGamePage;
}
- if (!tqparent) {
+ if (!parent) {
kdError(11001) << "cannot add chat widget without page" << endl;
return;
}
- addConfigWidget(chat, tqparent);
+ addConfigWidget(chat, parent);
}
-void KGameDialog::addConnectionList(KGameDialogConnectionConfig* c, TQVBox* tqparent)
+void KGameDialog::addConnectionList(KGameDialogConnectionConfig* c, TQVBox* parent)
{
if (!c) {
return;
}
- if (!tqparent) {
- tqparent = d->mNetworkPage;
+ if (!parent) {
+ parent = d->mNetworkPage;
}
- if (!tqparent) {
+ if (!parent) {
kdError(11001) << "Cannot add connection list without page" << endl;
return;
}
- addConfigWidget(c, tqparent);
+ addConfigWidget(c, parent);
}
TQVBox *KGameDialog::configPage(ConfigOptions which)
@@ -226,18 +226,18 @@ TQVBox* KGameDialog::addConfigPage(KGameDialogConfig* widget, const TQString& ti
return page;
}
-void KGameDialog::addConfigWidget(KGameDialogConfig* widget, TQWidget* tqparent)
+void KGameDialog::addConfigWidget(KGameDialogConfig* widget, TQWidget* parent)
{
if (!widget) {
kdError(11001) << "Cannot add NULL config widget" << endl;
return;
}
- if (!tqparent) {
+ if (!parent) {
kdError(11001) << "Cannot reparent to NULL widget" << endl;
return;
}
// kdDebug(11001) << "reparenting widget" << endl;
- widget->reparent(tqparent, TQPoint(0,0));
+ widget->reparent(parent, TQPoint(0,0));
d->mConfigWidgets.append(widget);
connect(widget, TQT_SIGNAL(destroyed(TQObject*)), this, TQT_SLOT(slotRemoveConfigWidget(TQObject*)));
if (!d->mGame) {