diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
commit | 838baf3f99ec5ab81b063eb5449a3381d860f377 (patch) | |
tree | dd31abcfde08ca92e4623b8f50b3d762a87c997a /libkdegames/kgame/kplayer.cpp | |
parent | 2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff) | |
download | tdegames-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/kplayer.cpp')
-rw-r--r-- | libkdegames/kgame/kplayer.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libkdegames/kgame/kplayer.cpp b/libkdegames/kgame/kplayer.cpp index fdde20d9..adc893ff 100644 --- a/libkdegames/kgame/kplayer.cpp +++ b/libkdegames/kgame/kplayer.cpp @@ -46,7 +46,7 @@ public: mNetworkPlayer = 0; } - Q_UINT32 mId; + TQ_UINT32 mId; bool mVirtual; // virtual player int mPriority; // tag for replacement @@ -55,8 +55,8 @@ public: KGamePropertyHandler mProperties; // Playerdata - KGamePropertyQString mName; - KGamePropertyQString mGroup; + KGamePropertyTQString mName; + KGamePropertyTQString mGroup; }; KPlayer::KPlayer() : TQObject(0,0) @@ -125,7 +125,7 @@ KPlayer::~KPlayer() // kdDebug(11001) << k_funcinfo << " done" << endl; } -bool KPlayer::forwardMessage(TQDataStream &msg,int msgid,Q_UINT32 receiver,Q_UINT32 sender) +bool KPlayer::forwardMessage(TQDataStream &msg,int msgid,TQ_UINT32 receiver,TQ_UINT32 sender) { if (!isActive()) { @@ -139,7 +139,7 @@ bool KPlayer::forwardMessage(TQDataStream &msg,int msgid,Q_UINT32 receiver,Q_UIN return game()->sendSystemMessage(msg,msgid,receiver,sender); } -bool KPlayer::forwardInput(TQDataStream &msg,bool transmit,Q_UINT32 sender) +bool KPlayer::forwardInput(TQDataStream &msg,bool transmit,TQ_UINT32 sender) { if (!isActive()) { @@ -173,7 +173,7 @@ bool KPlayer::forwardInput(TQDataStream &msg,bool transmit,Q_UINT32 sender) } } -void KPlayer::setId(Q_UINT32 newid) +void KPlayer::setId(TQ_UINT32 newid) { // Needs to be after the sendProcess d->mId=newid; @@ -192,7 +192,7 @@ void KPlayer::setName(const TQString& name) const TQString& KPlayer::name() const { return d->mName.value(); } -Q_UINT32 KPlayer::id() const +TQ_UINT32 KPlayer::id() const { return d->mId; } KGamePropertyHandler * KPlayer::dataHandler() @@ -313,7 +313,7 @@ bool KPlayer::setTurn(bool b, bool exclusive) bool KPlayer::load(TQDataStream &stream) { - Q_INT32 id,priority; + TQ_INT32 id,priority; stream >> id >> priority; setId(id); setNetworkPriority(priority); @@ -322,7 +322,7 @@ bool KPlayer::load(TQDataStream &stream) //FIXME: maybe set all properties setEmitSignal(false) before? d->mProperties.load(stream); - Q_INT16 cookie; + TQ_INT16 cookie; stream >> cookie; if (cookie==KPLAYER_LOAD_COOKIE) { @@ -339,18 +339,18 @@ bool KPlayer::load(TQDataStream &stream) bool KPlayer::save(TQDataStream &stream) { - stream << (Q_INT32)id() << (Q_INT32)networkPriority(); + stream << (TQ_INT32)id() << (TQ_INT32)networkPriority(); d->mProperties.save(stream); - stream << (Q_INT16)KPLAYER_LOAD_COOKIE; + stream << (TQ_INT16)KPLAYER_LOAD_COOKIE; //emit signalSave(stream); return true; } -void KPlayer::networkTransmission(TQDataStream &stream,int msgid,Q_UINT32 sender) +void KPlayer::networkTransmission(TQDataStream &stream,int msgid,TQ_UINT32 sender) { //kdDebug(11001) << k_funcinfo ": msgid=" << msgid << " sender=" << sender << " we are=" << id() << endl; // PlayerProperties processed @@ -388,7 +388,7 @@ void KPlayer::networkTransmission(TQDataStream &stream,int msgid,Q_UINT32 sender KGamePropertyBase* KPlayer::findProperty(int id) const { - return d->mProperties.find(id); + return d->mProperties.tqfind(id); } bool KPlayer::addProperty(KGamePropertyBase* data) |