summaryrefslogtreecommitdiffstats
path: root/kbattleship/kbattleship/konnectionhandling.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbattleship/kbattleship/konnectionhandling.cpp')
-rw-r--r--kbattleship/kbattleship/konnectionhandling.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kbattleship/kbattleship/konnectionhandling.cpp b/kbattleship/kbattleship/konnectionhandling.cpp
index 45a2a452..5d5c1026 100644
--- a/kbattleship/kbattleship/konnectionhandling.cpp
+++ b/kbattleship/kbattleship/konnectionhandling.cpp
@@ -94,7 +94,7 @@ void KonnectionHandling::slotNewMessage(KMessage *msg)
case KMessage::DISCARD:
if(msg->field("kmversion") == TQString("true"))
{
- KMessageBox::error(0L, i18n("Connection dropped by enemy. The client's protocol implementation (%1) is not compatible with our (%2) version.").tqarg(msg->field("reason")).tqarg(protocolVersion));
+ KMessageBox::error(0L, i18n("Connection dropped by enemy. The client's protocol implementation (%1) is not compatible with our (%2) version.").arg(msg->field("reason")).arg(protocolVersion));
emit sigAbortNetworkGame();
}
else
@@ -156,10 +156,10 @@ void KonnectionHandling::slotNewMessage(KMessage *msg)
{
// First message....got client information
case KMessage::GETVERSION:
- if(msg->field("protocolVersion") != TQString::tqfromLatin1(protocolVersion))
+ if(msg->field("protocolVersion") != TQString::fromLatin1(protocolVersion))
{
m_kbserver->slotDiscardClient(protocolVersion, true, false);
- KMessageBox::error(0L, i18n("Connection to client dropped. The client's protocol implementation (%1) is not compatible with our (%2) version.").tqarg(msg->field("protocolVersion")).tqarg(protocolVersion));
+ KMessageBox::error(0L, i18n("Connection to client dropped. The client's protocol implementation (%1) is not compatible with our (%2) version.").arg(msg->field("protocolVersion")).arg(protocolVersion));
}
else
emit sigClientInformation(msg->field("clientName"), msg->field("clientVersion"), msg->field("clientDescription"), msg->field("protocolVersion"));
@@ -232,7 +232,7 @@ void KonnectionHandling::slotSocketError(int error)
break;
default:
- KMessageBox::error(0L, i18n("Unknown error; No: %1").tqarg(error));
+ KMessageBox::error(0L, i18n("Unknown error; No: %1").arg(error));
break;
}