From 808e453c56036211f57482ed847d54aca01bba68 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:49:40 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kdict/dict.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kdict/dict.cpp') diff --git a/kdict/dict.cpp b/kdict/dict.cpp index 8e55061c..8da41eee 100644 --- a/kdict/dict.cpp +++ b/kdict/dict.cpp @@ -23,7 +23,7 @@ #include "dict.h" #include -#include +#include #include #include @@ -204,12 +204,12 @@ void DictAsyncClient::define() job->result = TQString(); if (job->numFetched == 0) { resultAppend("\n

\n"); - resultAppend(i18n("No definitions found for \'%1'.").tqarg(job->query)); + resultAppend(i18n("No definitions found for \'%1'.").arg(job->query)); resultAppend("

\n"); } else { // html header... resultAppend("\n

\n"); - resultAppend(i18n("No definitions found for \'%1\'. Perhaps you mean:").tqarg(job->query)); + resultAppend(i18n("No definitions found for \'%1\'. Perhaps you mean:").arg(job->query)); resultAppend("

\n\n"); TQString lastDb; @@ -591,7 +591,7 @@ void DictAsyncClient::showDbInfo() // html header... resultAppend("\n

\n"); - resultAppend(i18n("Database Information [%1]:").tqarg(job->query)); + resultAppend(i18n("Database Information [%1]:").arg(job->query)); resultAppend("

\n

\n"); bool done(false); @@ -1407,7 +1407,7 @@ void DictInterface::clientDone() message = i18n("One definition found"); break; default: - message = i18n("%1 definitions found").tqarg(job->numFetched); + message = i18n("%1 definitions found").arg(job->numFetched); } } else { switch (job->numFetched) { @@ -1418,7 +1418,7 @@ void DictInterface::clientDone() message = i18n(" One definition fetched "); break; default: - message = i18n(" %1 definitions fetched ").tqarg(job->numFetched); + message = i18n(" %1 definitions fetched ").arg(job->numFetched); } } emit stopped(message); @@ -1433,7 +1433,7 @@ void DictInterface::clientDone() message = i18n(" One matching definition found "); break; default: - message = i18n(" %1 matching definitions found ").tqarg(job->numFetched); + message = i18n(" %1 matching definitions found ").arg(job->numFetched); } emit stopped(message); emit matchReady(job->matches); @@ -1451,17 +1451,17 @@ void DictInterface::clientDone() errMsg += job->result; break; case JobData::ErrTimeout: - errMsg = i18n("A delay occurred which exceeded the\ncurrent timeout limit of %1 seconds.\nYou can modify this limit in the Preferences Dialog.").tqarg(global->timeout); + errMsg = i18n("A delay occurred which exceeded the\ncurrent timeout limit of %1 seconds.\nYou can modify this limit in the Preferences Dialog.").arg(global->timeout); break; case JobData::ErrBadHost: - errMsg = i18n("Unable to connect to:\n%1:%2\n\nCannot resolve hostname.").tqarg(job->server).tqarg(job->port); + errMsg = i18n("Unable to connect to:\n%1:%2\n\nCannot resolve hostname.").arg(job->server).arg(job->port); break; case JobData::ErrConnect: - errMsg = i18n("Unable to connect to:\n%1:%2\n\n").tqarg(job->server).tqarg(job->port); + errMsg = i18n("Unable to connect to:\n%1:%2\n\n").arg(job->server).arg(job->port); errMsg += job->result; break; case JobData::ErrRefused: - errMsg = i18n("Unable to connect to:\n%1:%2\n\nThe server refused the connection.").tqarg(job->server).tqarg(job->port); + errMsg = i18n("Unable to connect to:\n%1:%2\n\nThe server refused the connection.").arg(job->server).arg(job->port); break; case JobData::ErrNotAvailable: errMsg = i18n("The server is temporarily unavailable."); @@ -1488,7 +1488,7 @@ void DictInterface::clientDone() errMsg = i18n("No strategies available."); break; case JobData::ErrServerError: - errMsg = i18n("The server sent an unexpected reply:\n\"%1\"\nThis shouldn't happen, please consider\nwriting a bug report").tqarg(job->result); + errMsg = i18n("The server sent an unexpected reply:\n\"%1\"\nThis shouldn't happen, please consider\nwriting a bug report").arg(job->result); break; case JobData::ErrMsgTooLong: errMsg = i18n("The server sent a response with a text line\nthat was too long.\n(RFC 2229: max. 1024 characters/6144 octets)"); -- cgit v1.2.1