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.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/libkdegames/kgame/dialogs/kgamedialog.cpp b/libkdegames/kgame/dialogs/kgamedialog.cpp
index dc564b8e..c03df4ff 100644
--- a/libkdegames/kgame/dialogs/kgamedialog.cpp
+++ b/libkdegames/kgame/dialogs/kgamedialog.cpp
@@ -18,8 +18,8 @@
Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qvbox.h>
+#include <tqlayout.h>
+#include <tqvbox.h>
#include <klocale.h>
@@ -48,31 +48,31 @@ public:
mGame = 0;
}
- QVBox* mGamePage;
- QVBox* mNetworkPage;
- QVBox* mMsgServerPage;// unused here?
- QVBoxLayout* mTopLayout;
+ TQVBox* mGamePage;
+ TQVBox* mNetworkPage;
+ TQVBox* mMsgServerPage;// unused here?
+ TQVBoxLayout* mTopLayout;
KGameDialogNetworkConfig* mNetworkConfig;
KGameDialogGeneralConfig* mGameConfig;
// a list of all config widgets added to this dialog
- QPtrList<KGameDialogConfig> mConfigWidgets;
+ TQPtrList<KGameDialogConfig> mConfigWidgets;
// just pointers:
KPlayer* mOwner;
KGame* mGame;
};
-KGameDialog::KGameDialog(KGame* g, KPlayer* owner, const QString& title,
- QWidget* parent, bool modal)
+KGameDialog::KGameDialog(KGame* g, KPlayer* owner, const TQString& title,
+ TQWidget* parent, bool modal)
: KDialogBase(Tabbed, title, Ok|Default|Apply,
Ok, parent, 0, modal, true)
{
init(g, owner);
}
-KGameDialog::KGameDialog(KGame* g, KPlayer* owner, const QString& title,
- QWidget* parent, long initConfigs, int chatMsgId, bool modal)
+KGameDialog::KGameDialog(KGame* g, KPlayer* owner, const TQString& title,
+ TQWidget* parent, long initConfigs, int chatMsgId, bool modal)
: KDialogBase(Tabbed, title, Ok|Default|Apply,
Ok, parent, 0, modal, true)
{
@@ -165,7 +165,7 @@ void KGameDialog::addMsgServerConfig(KGameDialogMsgServerConfig* msgConf)
d->mMsgServerPage = addConfigPage(msgConf, i18n("&Message Server"));
}
-void KGameDialog::addChatWidget(KGameDialogChatConfig* chat, QVBox* parent)
+void KGameDialog::addChatWidget(KGameDialogChatConfig* chat, TQVBox* parent)
{
if (!chat) {
return;
@@ -180,7 +180,7 @@ void KGameDialog::addChatWidget(KGameDialogChatConfig* chat, QVBox* parent)
addConfigWidget(chat, parent);
}
-void KGameDialog::addConnectionList(KGameDialogConnectionConfig* c, QVBox* parent)
+void KGameDialog::addConnectionList(KGameDialogConnectionConfig* c, TQVBox* parent)
{
if (!c) {
return;
@@ -195,9 +195,9 @@ void KGameDialog::addConnectionList(KGameDialogConnectionConfig* c, QVBox* paren
addConfigWidget(c, parent);
}
-QVBox *KGameDialog::configPage(ConfigOptions which)
+TQVBox *KGameDialog::configPage(ConfigOptions which)
{
- QVBox *box = 0;
+ TQVBox *box = 0;
switch(which)
{
case NetworkConfig:
@@ -215,18 +215,18 @@ QVBox *KGameDialog::configPage(ConfigOptions which)
return box;
}
-QVBox* KGameDialog::addConfigPage(KGameDialogConfig* widget, const QString& title)
+TQVBox* KGameDialog::addConfigPage(KGameDialogConfig* widget, const TQString& title)
{
if (!widget) {
kdError(11001) << "Cannot add NULL config widget" << endl;
return 0;
}
- QVBox* page = addVBoxPage(title);
+ TQVBox* page = addVBoxPage(title);
addConfigWidget(widget, page);
return page;
}
-void KGameDialog::addConfigWidget(KGameDialogConfig* widget, QWidget* parent)
+void KGameDialog::addConfigWidget(KGameDialogConfig* widget, TQWidget* parent)
{
if (!widget) {
kdError(11001) << "Cannot add NULL config widget" << endl;
@@ -237,9 +237,9 @@ void KGameDialog::addConfigWidget(KGameDialogConfig* widget, QWidget* parent)
return;
}
// kdDebug(11001) << "reparenting widget" << endl;
- widget->reparent(parent, QPoint(0,0));
+ widget->reparent(parent, TQPoint(0,0));
d->mConfigWidgets.append(widget);
- connect(widget, SIGNAL(destroyed(QObject*)), this, SLOT(slotRemoveConfigWidget(QObject*)));
+ connect(widget, TQT_SIGNAL(destroyed(TQObject*)), this, TQT_SLOT(slotRemoveConfigWidget(TQObject*)));
if (!d->mGame) {
kdWarning(11001) << "No game has been set!" << endl;
} else {
@@ -278,7 +278,7 @@ void KGameDialog::slotDefault()
void KGameDialog::slotOk()
{
slotApply();
- QDialog::accept();
+ TQDialog::accept();
}
void KGameDialog::setOwner(KPlayer* owner)
@@ -306,9 +306,9 @@ void KGameDialog::setKGame(KGame* g)
}
if (d->mGame) {
setAdmin(d->mGame->isAdmin());
- connect(d->mGame, SIGNAL(destroyed()), this, SLOT(slotUnsetKGame()));
- connect(d->mGame, SIGNAL(signalAdminStatusChanged(bool)),
- this, SLOT(setAdmin(bool)));
+ connect(d->mGame, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotUnsetKGame()));
+ connect(d->mGame, TQT_SIGNAL(signalAdminStatusChanged(bool)),
+ this, TQT_SLOT(setAdmin(bool)));
}
}
@@ -340,7 +340,7 @@ void KGameDialog::submitToKGame()
}
}
-void KGameDialog::slotRemoveConfigWidget(QObject* configWidget)
+void KGameDialog::slotRemoveConfigWidget(TQObject* configWidget)
{
d->mConfigWidgets.removeRef((KGameDialogConfig*)configWidget);
}