summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kipi-plugins/simpleviewerexport/simpleviewerexport.cpp')
-rw-r--r--kipi-plugins/simpleviewerexport/simpleviewerexport.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp b/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp
index 8be9611..87f5f2a 100644
--- a/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp
+++ b/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp
@@ -149,7 +149,7 @@ bool SimpleViewerExport::configure()
int ret = KMessageBox::warningYesNoCancel(TQT_TQWIDGET(kapp->activeWindow()),
i18n("Target folder %1 already exists.\n"
"Do you want to overwrite it (all data in this folder will be lost)")
- .tqarg(m_configDlg->exportURL()));
+ .arg(m_configDlg->exportURL()));
switch(ret)
{
@@ -157,7 +157,7 @@ bool SimpleViewerExport::configure()
if(!KIO::NetAccess::del(m_configDlg->exportURL(), TQT_TQWIDGET(kapp->activeWindow())))
{
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), i18n("Could not delete %1\n"
- "Please choose another export folder").tqarg(m_configDlg->exportURL()));
+ "Please choose another export folder").arg(m_configDlg->exportURL()));
configured = false;
}
break;
@@ -267,7 +267,7 @@ void SimpleViewerExport::slotProcess()
int ret = KMessageBox::warningYesNo(TQT_TQWIDGET(kapp->activeWindow()),
i18n("Export was canceled.\n"
"Do you want to delete the yet created files in %1 ?")
- .tqarg(m_configDlg->exportURL()));
+ .arg(m_configDlg->exportURL()));
if(ret == KMessageBox::Yes)
{
KIO::NetAccess::del(m_configDlg->exportURL(), TQT_TQWIDGET(kapp->activeWindow()));
@@ -288,7 +288,7 @@ bool SimpleViewerExport::createExportDirectories()
KURL root = m_configDlg->exportURL();
if(!KIO::NetAccess::mkdir(root, TQT_TQWIDGET(kapp->activeWindow())))
{
- m_progressDlg->addedAction(i18n("Could not create folder '%1'").tqarg(root.url()),
+ m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(root.url()),
KIPI::ErrorMessage);
return(false);
}
@@ -297,7 +297,7 @@ bool SimpleViewerExport::createExportDirectories()
thumbsDir.addPath("/thumbs");
if(!KIO::NetAccess::mkdir(thumbsDir, TQT_TQWIDGET(kapp->activeWindow())))
{
- m_progressDlg->addedAction(i18n("Could not create folder '%1'").tqarg(thumbsDir.url()),
+ m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(thumbsDir.url()),
KIPI::ErrorMessage);
return(false);
}
@@ -306,7 +306,7 @@ bool SimpleViewerExport::createExportDirectories()
imagesDir.addPath("/images");
if(!KIO::NetAccess::mkdir(imagesDir, TQT_TQWIDGET(kapp->activeWindow())))
{
- m_progressDlg->addedAction(i18n("Could not create folder '%1'").tqarg(imagesDir.url()),
+ m_progressDlg->addedAction(i18n("Could not create folder '%1'").arg(imagesDir.url()),
KIPI::ErrorMessage);
return(false);
}
@@ -377,7 +377,7 @@ bool SimpleViewerExport::exportImages()
KURL url = *it;
TQFileInfo fileInfo(url.path());
- m_progressDlg->addedAction(i18n("Processing %1").tqarg(url.filename()), KIPI::StartingMessage);
+ m_progressDlg->addedAction(i18n("Processing %1").arg(url.filename()), KIPI::StartingMessage);
// Check if RAW file.
#if KDCRAW_VERSION < 0x000106
@@ -392,27 +392,27 @@ bool SimpleViewerExport::exportImages()
if(image.isNull())
{
- m_progressDlg->addedAction(i18n("Could not open image '%1'").tqarg(url.filename()),
+ m_progressDlg->addedAction(i18n("Could not open image '%1'").arg(url.filename()),
KIPI::WarningMessage);
continue;
}
if(!createThumbnail(image, thumbnail))
{
- m_progressDlg->addedAction(i18n("Could not create thumbnail from '%1'").tqarg(url.filename()),
+ m_progressDlg->addedAction(i18n("Could not create thumbnail from '%1'").arg(url.filename()),
KIPI::WarningMessage);
continue;
}
if(resizeImages && !resizeImage(image, maxSize, image))
{
- m_progressDlg->addedAction(i18n("Could not resize image '%1'").tqarg(url.filename()),
+ m_progressDlg->addedAction(i18n("Could not resize image '%1'").arg(url.filename()),
KIPI::WarningMessage);
continue;
}
meta.load(url.path());
- newName = TQString("%1.%2").tqarg(tmp.sprintf("%03i", index)).tqarg(TQString("jpg"));
+ newName = TQString("%1.%2").arg(tmp.sprintf("%03i", index)).arg(TQString("jpg"));
KURL thumbnailPath(thumbsDir);
thumbnailPath.addPath(newName);