From 838baf3f99ec5ab81b063eb5449a3381d860f377 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 11 Jun 2011 04:58:26 +0000 Subject: 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 --- libkdegames/kgame/dialogs/kgameerrordialog.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'libkdegames/kgame/dialogs/kgameerrordialog.h') diff --git a/libkdegames/kgame/dialogs/kgameerrordialog.h b/libkdegames/kgame/dialogs/kgameerrordialog.h index 3883399b..b8d34c1a 100644 --- a/libkdegames/kgame/dialogs/kgameerrordialog.h +++ b/libkdegames/kgame/dialogs/kgameerrordialog.h @@ -36,11 +36,12 @@ class KGameErrorDialogPrivate; * @short Error handling for KGame * @author Andreas Beckermann **/ -class KGameErrorDialog : public QObject +class KGameErrorDialog : public TQObject { Q_OBJECT + TQ_OBJECT public: - KGameErrorDialog(TQWidget* parent); + KGameErrorDialog(TQWidget* tqparent); ~KGameErrorDialog(); /** @@ -55,9 +56,9 @@ public: * KGame couldn't establish a connection. Use this if * KGame::initConnection returns false * @param s A string that describes the error further (like port is - * already in use). Will be ignored if TQString::null + * already in use). Will be ignored if TQString() **/ - void connectionError(TQString s = TQString::null); + void connectionError(TQString s = TQString()); public slots: void slotError(int error, TQString text); @@ -74,7 +75,7 @@ public slots: * * See @ref KGameNetwork::signalClientDisconnected **/ - void slotClientConnectionLost(Q_UINT32 clientID,bool broken); + void slotClientConnectionLost(TQ_UINT32 clientID,bool broken); /** * Unsets a @ref KGame which has been set using @ref setKGame before. @@ -87,7 +88,7 @@ public slots: void slotUnsetKGame(); protected: - void error(const TQString& errorText, TQWidget* parent = 0); + void error(const TQString& errorText, TQWidget* tqparent = 0); private: KGameErrorDialogPrivate* d; @@ -103,8 +104,9 @@ private: class KGameErrorMessageDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - KGameErrorMessageDialog(TQWidget* parent); + KGameErrorMessageDialog(TQWidget* tqparent); ~KGameErrorMessageDialog(); private: -- cgit v1.2.1