summaryrefslogtreecommitdiffstats
path: root/src/filehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filehandler.cpp')
-rw-r--r--src/filehandler.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/filehandler.cpp b/src/filehandler.cpp
index 6329f61..10c5405 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).tqarg(url_.fileName()));
+ Kernel::self()->sorry(i18n(errorLoad).arg(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).tqarg(u.fileName()));
+ Kernel::self()->sorry(i18n(errorLoad).arg(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.").tqarg(errorLine).tqarg(errorColumn);
+ TQString details = i18n("There is an XML parsing error in line %1, column %2.").arg(errorLine).arg(errorColumn);
details += TQString::fromLatin1("\n");
details += i18n("The error message from TQt is:");
details += TQString::fromLatin1("\n\t") + errorMsg;
GUI::CursorSaver cs(TQt::arrowCursor);
- KMessageBox::detailedSorry(Kernel::self()->widget(), i18n(errorLoad).tqarg(url_.fileName()), details);
+ KMessageBox::detailedSorry(Kernel::self()->widget(), i18n(errorLoad).arg(url_.fileName()), details);
}
return TQDomDocument();
}
@@ -188,7 +188,7 @@ Tellico::Data::Image* FileHandler::readImageFile(const KURL& url_, bool quiet_,
if(!KIO::NetAccess::synchronousRun(job, Kernel::self()->widget())) {
if(!quiet_) {
- Kernel::self()->sorry(i18n(errorLoad).tqarg(url_.fileName()));
+ Kernel::self()->sorry(i18n(errorLoad).arg(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.").tqarg(url_.fileName());
+ TQString str = i18n("Tellico is unable to load the image - %1.").arg(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?").tqarg(url_.fileName());
+ "Are you sure you want to overwrite it?").arg(url_.fileName());
int want_continue = KMessageBox::warningContinueCancel(Kernel::self()->widget(), str,
i18n("Overwrite File?"),
i18n("Overwrite"));
@@ -259,7 +259,7 @@ bool FileHandler::queryExists(const KURL& url_) {
false /* resume */, Kernel::self()->widget());
}
if(!success) {
- Kernel::self()->sorry(i18n(errorWrite).tqarg(url_.fileName() + '~'));
+ Kernel::self()->sorry(i18n(errorWrite).arg(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).tqarg(url_.fileName()));
+ Kernel::self()->sorry(i18n(errorWrite).arg(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).tqarg(url_.fileName()));
+ Kernel::self()->sorry(i18n(errorWrite).arg(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).tqarg(url_.fileName()));
+ Kernel::self()->sorry(i18n(errorUpload).arg(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).tqarg(url_.fileName()));
+ Kernel::self()->sorry(i18n(errorWrite).arg(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).tqarg(url_.fileName()));
+ Kernel::self()->sorry(i18n(errorWrite).arg(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).tqarg(url_.fileName()));
+ Kernel::self()->sorry(i18n(errorUpload).arg(url_.fileName()));
}
}
tempfile.unlink();