summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/kgameerror.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 /libkdegames/kgame/kgameerror.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 'libkdegames/kgame/kgameerror.cpp')
-rw-r--r--libkdegames/kgame/kgameerror.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/libkdegames/kgame/kgameerror.cpp b/libkdegames/kgame/kgameerror.cpp
index eb98a797..ef6145fb 100644
--- a/libkdegames/kgame/kgameerror.cpp
+++ b/libkdegames/kgame/kgameerror.cpp
@@ -30,8 +30,8 @@ TQByteArray KGameError::errVersion(int remoteVersion)
{
TQByteArray b;
TQDataStream s(b, IO_WriteOnly);
- s << (Q_INT32)KGameMessage::version();
- s << (Q_INT32)remoteVersion;
+ s << (TQ_INT32)KGameMessage::version();
+ s << (TQ_INT32)remoteVersion;
return b;
}
@@ -39,8 +39,8 @@ TQByteArray KGameError::errCookie(int localCookie, int remoteCookie)
{
TQByteArray b;
TQDataStream s(b, IO_WriteOnly);
- s << (Q_INT32)localCookie;
- s << (Q_INT32)remoteCookie;
+ s << (TQ_INT32)localCookie;
+ s << (TQ_INT32)remoteCookie;
return b;
}
@@ -56,24 +56,24 @@ TQString KGameError::errorText(int errorCode, TQDataStream& s)
switch (errorCode) {
case Cookie:
{
- Q_INT32 cookie1;
- Q_INT32 cookie2;
+ TQ_INT32 cookie1;
+ TQ_INT32 cookie2;
s >> cookie1;
s >> cookie2;
- text = i18n("Cookie mismatch!\nExpected Cookie: %1\nReceived Cookie: %2").arg(cookie1).arg(cookie2);
+ text = i18n("Cookie mismatch!\nExpected Cookie: %1\nReceived Cookie: %2").tqarg(cookie1).tqarg(cookie2);
break;
}
case Version:
{
- Q_INT32 version1;
- Q_INT32 version2;
+ TQ_INT32 version1;
+ TQ_INT32 version2;
s >> version1;
s >> version2;
- text = i18n("KGame Version mismatch!\nExpected Version: %1\nReceived Version: %2\n").arg(version1).arg(version2);
+ text = i18n("KGame Version mismatch!\nExpected Version: %1\nReceived Version: %2\n").tqarg(version1).tqarg(version2);
break;
}
default:
- text = i18n("Unknown error code %1").arg(errorCode);
+ text = i18n("Unknown error code %1").tqarg(errorCode);
}
return text;
}