summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/dialogs/kgameconnectdialog.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /libkdegames/kgame/dialogs/kgameconnectdialog.h
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdegames/kgame/dialogs/kgameconnectdialog.h')
-rw-r--r--libkdegames/kgame/dialogs/kgameconnectdialog.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/libkdegames/kgame/dialogs/kgameconnectdialog.h b/libkdegames/kgame/dialogs/kgameconnectdialog.h
index fdb0be4f..ad4ff7d1 100644
--- a/libkdegames/kgame/dialogs/kgameconnectdialog.h
+++ b/libkdegames/kgame/dialogs/kgameconnectdialog.h
@@ -26,11 +26,12 @@
class KGameConnectDialogPrivate;
class KGameConnectWidgetPrivate;
-class KGameConnectWidget : public QWidget
+class KGameConnectWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KGameConnectWidget(TQWidget* parent);
+ KGameConnectWidget(TQWidget* tqparent);
virtual ~KGameConnectWidget();
/**
@@ -39,7 +40,7 @@ public:
void setHost(const TQString& host);
/**
- * @return The host to connect to or TQString::null if the user wants to
+ * @return The host to connect to or TQString() if the user wants to
* be the MASTER
**/
TQString host() const;
@@ -108,16 +109,17 @@ private:
* @short Dialog to ask for host and port
*
* This Dialog is used to create a game. You call initConnection(port,
- * TQString::null, parent, true) to create a network game (as a server)
- * or initConnection(port, host, parent) to join a network game.
+ * TQString(), tqparent, true) to create a network game (as a server)
+ * or initConnection(port, host, tqparent) to join a network game.
*
* @author Andreas Beckermann <b_mann@gmx.de>
**/
class KGameConnectDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- KGameConnectDialog(TQWidget* parent = 0,int buttonmask=Ok|Cancel);
+ KGameConnectDialog(TQWidget* tqparent = 0,int buttontqmask=Ok|Cancel);
virtual ~KGameConnectDialog();
/**
@@ -125,12 +127,12 @@ public:
* server game, depending on user's choice.
* @param port The port the user wants to connect to.
* @param host The host the user wants to connect to. Will be
- * TQString::null if server game is chosen
- * @param parent The parent of the dialog
+ * TQString() if server game is chosen
+ * @param tqparent The tqparent of the dialog
* @param server True to create a network game per default, false to
* join a game by default
**/
- static int initConnection(unsigned short int& port, TQString& host, TQWidget* parent, bool server = false);
+ static int initConnection(unsigned short int& port, TQString& host, TQWidget* tqparent, bool server = false);
/**
* @param host The host to connect to by default
@@ -138,7 +140,7 @@ public:
void setHost(const TQString& host);
/**
- * @return The host to connect to or TQString::null if the user wants to
+ * @return The host to connect to or TQString() if the user wants to
* be the MASTER
**/
TQString host() const;