diff options
Diffstat (limited to 'src/filehandler.cpp')
-rw-r--r-- | src/filehandler.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/filehandler.cpp b/src/filehandler.cpp index 10c5405..900257a 100644 --- a/src/filehandler.cpp +++ b/src/filehandler.cpp @@ -65,7 +65,7 @@ FileHandler::FileRef::FileRef(const KURL& url_, bool quiet_, bool allowCompresse myDebug() << s << endl; } if(!quiet_) { - Kernel::self()->sorry(i18n(errorLoad).arg(url_.fileName())); + Kernel::self()->sorry(i18n(errorLoad).tqarg(url_.fileName())); } return; } @@ -107,7 +107,7 @@ bool FileHandler::FileRef::open(bool quiet_) { if(!quiet_) { KURL u; u.setPath(fileName()); - Kernel::self()->sorry(i18n(errorLoad).arg(u.fileName())); + Kernel::self()->sorry(i18n(errorLoad).tqarg(u.fileName())); } delete m_device; m_device = 0; @@ -151,12 +151,12 @@ TQDomDocument FileHandler::readXMLFile(const KURL& url_, bool processNamespace_, } if(!doc.setContent(f.file(), processNamespace_, &errorMsg, &errorLine, &errorColumn)) { if(!quiet_) { - TQString details = i18n("There is an XML parsing error in line %1, column %2.").arg(errorLine).arg(errorColumn); - details += TQString::fromLatin1("\n"); + TQString details = i18n("There is an XML parsing error in line %1, column %2.").tqarg(errorLine).tqarg(errorColumn); + details += TQString::tqfromLatin1("\n"); details += i18n("The error message from TQt is:"); - details += TQString::fromLatin1("\n\t") + errorMsg; + details += TQString::tqfromLatin1("\n\t") + errorMsg; GUI::CursorSaver cs(TQt::arrowCursor); - KMessageBox::detailedSorry(Kernel::self()->widget(), i18n(errorLoad).arg(url_.fileName()), details); + KMessageBox::detailedSorry(Kernel::self()->widget(), i18n(errorLoad).tqarg(url_.fileName()), details); } return TQDomDocument(); } @@ -184,11 +184,11 @@ Tellico::Data::Image* FileHandler::readImageFile(const KURL& url_, bool quiet_, tmpFile.setAutoDelete(true); KIO::Job* job = KIO::file_copy(url_, tmpURL, -1, true /* overwrite */); - job->addMetaData(TQString::fromLatin1("referrer"), referrer_.url()); + job->addMetaData(TQString::tqfromLatin1("referrer"), referrer_.url()); if(!KIO::NetAccess::synchronousRun(job, Kernel::self()->widget())) { if(!quiet_) { - Kernel::self()->sorry(i18n(errorLoad).arg(url_.fileName())); + Kernel::self()->sorry(i18n(errorLoad).tqarg(url_.fileName())); } return 0; } @@ -203,7 +203,7 @@ Tellico::Data::Image* FileHandler::readImageFile(const KURL& url_, bool quiet_) Data::Image* img = new Data::Image(f.fileName()); if(img->isNull() && !quiet_) { - TQString str = i18n("Tellico is unable to load the image - %1.").arg(url_.fileName()); + TQString str = i18n("Tellico is unable to load the image - %1.").tqarg(url_.fileName()); Kernel::self()->sorry(str); } return img; @@ -218,7 +218,7 @@ bool FileHandler::queryExists(const KURL& url_) { if(url_ != Kernel::self()->URL()) { GUI::CursorSaver cs(TQt::arrowCursor); TQString str = i18n("A file named \"%1\" already exists. " - "Are you sure you want to overwrite it?").arg(url_.fileName()); + "Are you sure you want to overwrite it?").tqarg(url_.fileName()); int want_continue = KMessageBox::warningContinueCancel(Kernel::self()->widget(), str, i18n("Overwrite File?"), i18n("Overwrite")); @@ -229,7 +229,7 @@ bool FileHandler::queryExists(const KURL& url_) { } KURL backup(url_); - backup.setPath(backup.path() + TQString::fromLatin1("~")); + backup.setPath(backup.path() + TQString::tqfromLatin1("~")); bool success = true; if(url_.isLocalFile()) { @@ -259,7 +259,7 @@ bool FileHandler::queryExists(const KURL& url_) { false /* resume */, Kernel::self()->widget()); } if(!success) { - Kernel::self()->sorry(i18n(errorWrite).arg(url_.fileName() + '~')); + Kernel::self()->sorry(i18n(errorWrite).tqarg(url_.fileName() + '~')); } return success; } @@ -288,7 +288,7 @@ bool FileHandler::writeTextURL(const KURL& url_, const TQString& text_, bool enc KSaveFile f(url_.path()); if(f.status() != 0) { if(!quiet_) { - Kernel::self()->sorry(i18n(errorWrite).arg(url_.fileName())); + Kernel::self()->sorry(i18n(errorWrite).tqarg(url_.fileName())); } return false; } @@ -307,7 +307,7 @@ bool FileHandler::writeTextURL(const KURL& url_, const TQString& text_, bool enc if(f.status() != 0) { tempfile.unlink(); if(!quiet_) { - Kernel::self()->sorry(i18n(errorWrite).arg(url_.fileName())); + Kernel::self()->sorry(i18n(errorWrite).tqarg(url_.fileName())); } return false; } @@ -318,7 +318,7 @@ bool FileHandler::writeTextURL(const KURL& url_, const TQString& text_, bool enc if(!uploaded) { tempfile.unlink(); if(!quiet_) { - Kernel::self()->sorry(i18n(errorUpload).arg(url_.fileName())); + Kernel::self()->sorry(i18n(errorUpload).tqarg(url_.fileName())); } success = false; } @@ -369,7 +369,7 @@ bool FileHandler::writeDataURL(const KURL& url_, const TQByteArray& data_, bool KSaveFile f(url_.path()); if(f.status() != 0) { if(!quiet_) { - Kernel::self()->sorry(i18n(errorWrite).arg(url_.fileName())); + Kernel::self()->sorry(i18n(errorWrite).tqarg(url_.fileName())); } return false; } @@ -387,7 +387,7 @@ bool FileHandler::writeDataURL(const KURL& url_, const TQByteArray& data_, bool KSaveFile f(tempfile.name()); if(f.status() != 0) { if(!quiet_) { - Kernel::self()->sorry(i18n(errorWrite).arg(url_.fileName())); + Kernel::self()->sorry(i18n(errorWrite).tqarg(url_.fileName())); } return false; } @@ -396,7 +396,7 @@ bool FileHandler::writeDataURL(const KURL& url_, const TQByteArray& data_, bool if(success) { success = KIO::NetAccess::upload(tempfile.name(), url_, Kernel::self()->widget()); if(!success && !quiet_) { - Kernel::self()->sorry(i18n(errorUpload).arg(url_.fileName())); + Kernel::self()->sorry(i18n(errorUpload).tqarg(url_.fileName())); } } tempfile.unlink(); |