summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/mp_interface.cpp
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 /libksirtet/lib/mp_interface.cpp
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 'libksirtet/lib/mp_interface.cpp')
-rw-r--r--libksirtet/lib/mp_interface.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/libksirtet/lib/mp_interface.cpp b/libksirtet/lib/mp_interface.cpp
index cfe06cd0..6683ba00 100644
--- a/libksirtet/lib/mp_interface.cpp
+++ b/libksirtet/lib/mp_interface.cpp
@@ -21,15 +21,15 @@
/*****************************************************************************/
MPInterface::MPInterface(const MPGameInfo &_gameInfo,
uint nbActions, const ActionData *data,
- TQWidget *parent, const char *name)
-: TQWidget(parent, name), internal(0), gameInfo(_gameInfo), nbLocalHumans(0)
+ TQWidget *tqparent, const char *name)
+: TQWidget(tqparent, name), internal(0), gameInfo(_gameInfo), nbLocalHumans(0)
{
Q_ASSERT( gameInfo.maxNbLocalPlayers>=1 );
hbl = new TQHBoxLayout(this, 0, 5);
hbl->setResizeMode( TQLayout::Fixed );
- _keyData = new KeyData(gameInfo.maxNbLocalPlayers, nbActions, data, this);
+ _keyData = new KeyData(gameInfo.maxNbLocalPlayers, nbActions, data, TQT_TQOBJECT(this));
}
MPInterface::~MPInterface()
@@ -98,16 +98,16 @@ void MPInterface::specialLocalGame(uint nbHumans, uint nbAIs)
KConfigGroupSaver cg(kapp->config(), MP_GROUP);
for (uint i=0; i<(nbHumans+nbAIs); i++) {
bd.type = (i<nbHumans ? PlayerComboBox::Human : PlayerComboBox::AI);
- bd.name = TQString::null;
+ bd.name = TQString();
t = (PlayerComboBox::Type)
- cg.config()->readNumEntry(TQString(MP_PLAYER_TYPE).arg(i),
+ cg.config()->readNumEntry(TQString(MP_PLAYER_TYPE).tqarg(i),
PlayerComboBox::None);
if ( bd.type==t )
- bd.name = cg.config()->readEntry(TQString(MP_PLAYER_NAME).arg(i),
- TQString::null);
+ bd.name = cg.config()->readEntry(TQString(MP_PLAYER_NAME).tqarg(i),
+ TQString());
if ( bd.name.isNull() )
- bd.name = (i<nbHumans ? i18n("Human %1").arg(i+1)
- : i18n("AI %1").arg(i-nbHumans+1));
+ bd.name = (i<nbHumans ? i18n("Human %1").tqarg(i+1)
+ : i18n("AI %1").tqarg(i-nbHumans+1));
cd.rhd.bds += bd;
}
cd.server = TRUE;
@@ -252,7 +252,7 @@ void MPInterface::immediateWrite()
void MPInterface::hostDisconnected(uint, const TQString &msg)
{
- errorBox(msg, TQString::null, this);
+ errorBox(msg, TQString(), this);
if ( !disconnected ) { // to avoid multiple calls
disconnected = TRUE;