diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:36:37 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:36:37 -0600 |
commit | 650c190e4a29a2a17fd46b32ce78b956b9816215 (patch) | |
tree | 5455c66e710cf34ad5c795f560883ac44fc864d6 /kipi-plugins/simpleviewerexport/simpleviewerexport.cpp | |
parent | a70b2efe3c22251c43a20d6e0eb3934ca523db80 (diff) | |
download | kipi-plugins-650c190e4a29a2a17fd46b32ce78b956b9816215.tar.gz kipi-plugins-650c190e4a29a2a17fd46b32ce78b956b9816215.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kipi-plugins/simpleviewerexport/simpleviewerexport.cpp')
-rw-r--r-- | kipi-plugins/simpleviewerexport/simpleviewerexport.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp b/kipi-plugins/simpleviewerexport/simpleviewerexport.cpp index 9c9fe3d..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); } @@ -336,24 +336,24 @@ bool SimpleViewerExport::exportImages() file.open(IO_WriteOnly); TQDomDocument xmlDoc; - xmlDoc.appendChild(xmlDoc.createProcessingInstruction( TQString::tqfromLatin1("xml"), - TQString::tqfromLatin1("version=\"1.0\" encoding=\"UTF-8\"") ) ); - TQDomElement galleryElem = xmlDoc.createElement(TQString::tqfromLatin1("simpleviewerGallery")); + xmlDoc.appendChild(xmlDoc.createProcessingInstruction( TQString::fromLatin1("xml"), + TQString::fromLatin1("version=\"1.0\" encoding=\"UTF-8\"") ) ); + TQDomElement galleryElem = xmlDoc.createElement(TQString::fromLatin1("simpleviewerGallery")); xmlDoc.appendChild( galleryElem ); - galleryElem.setAttribute(TQString::tqfromLatin1("maxImageWidth"), m_configDlg->maxImageDimension()); - galleryElem.setAttribute(TQString::tqfromLatin1("maxImageHeight"), m_configDlg->maxImageDimension()); - galleryElem.setAttribute(TQString::tqfromLatin1("textColor"), TQString(m_configDlg->textColor().name()).replace("#", "0x")); - galleryElem.setAttribute(TQString::tqfromLatin1("frameColor"), TQString(m_configDlg->frameColor().name()).replace("#", "0x")); - galleryElem.setAttribute(TQString::tqfromLatin1("bgColor"), TQString(m_configDlg->backgroundColor().name()).replace("#", "0x")); - galleryElem.setAttribute(TQString::tqfromLatin1("frameWidth"), m_configDlg->frameWidth()); - galleryElem.setAttribute(TQString::tqfromLatin1("stagePadding"), m_configDlg->stagePadding()); - galleryElem.setAttribute(TQString::tqfromLatin1("thumbnailColumns"), m_configDlg->thumbnailColumns()); - galleryElem.setAttribute(TQString::tqfromLatin1("thumbnailRows"), m_configDlg->thumbnailRows()); - galleryElem.setAttribute(TQString::tqfromLatin1("navPosition"), m_configDlg->navPosition()); - galleryElem.setAttribute(TQString::tqfromLatin1("navDirection"), m_configDlg->navDirection()); - galleryElem.setAttribute(TQString::tqfromLatin1("title"), m_configDlg->title()); - galleryElem.setAttribute(TQString::tqfromLatin1("imagePath"), TQString()); - galleryElem.setAttribute(TQString::tqfromLatin1("thumbPath"), TQString()); + galleryElem.setAttribute(TQString::fromLatin1("maxImageWidth"), m_configDlg->maxImageDimension()); + galleryElem.setAttribute(TQString::fromLatin1("maxImageHeight"), m_configDlg->maxImageDimension()); + galleryElem.setAttribute(TQString::fromLatin1("textColor"), TQString(m_configDlg->textColor().name()).replace("#", "0x")); + galleryElem.setAttribute(TQString::fromLatin1("frameColor"), TQString(m_configDlg->frameColor().name()).replace("#", "0x")); + galleryElem.setAttribute(TQString::fromLatin1("bgColor"), TQString(m_configDlg->backgroundColor().name()).replace("#", "0x")); + galleryElem.setAttribute(TQString::fromLatin1("frameWidth"), m_configDlg->frameWidth()); + galleryElem.setAttribute(TQString::fromLatin1("stagePadding"), m_configDlg->stagePadding()); + galleryElem.setAttribute(TQString::fromLatin1("thumbnailColumns"), m_configDlg->thumbnailColumns()); + galleryElem.setAttribute(TQString::fromLatin1("thumbnailRows"), m_configDlg->thumbnailRows()); + galleryElem.setAttribute(TQString::fromLatin1("navPosition"), m_configDlg->navPosition()); + galleryElem.setAttribute(TQString::fromLatin1("navDirection"), m_configDlg->navDirection()); + galleryElem.setAttribute(TQString::fromLatin1("title"), m_configDlg->title()); + galleryElem.setAttribute(TQString::fromLatin1("imagePath"), TQString()); + galleryElem.setAttribute(TQString::fromLatin1("thumbPath"), TQString()); KExiv2Iface::KExiv2 meta; TQImage image; @@ -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); @@ -510,15 +510,15 @@ void SimpleViewerExport::cfgAddImage(TQDomDocument &xmlDoc, TQDomElement &galler comment = TQString(); } - TQDomElement img = xmlDoc.createElement(TQString::tqfromLatin1("image")); + TQDomElement img = xmlDoc.createElement(TQString::fromLatin1("image")); galleryElem.appendChild(img); - TQDomElement name = xmlDoc.createElement(TQString::tqfromLatin1("name")); + TQDomElement name = xmlDoc.createElement(TQString::fromLatin1("name")); img.appendChild(name); TQDomText nametxt = xmlDoc.createTextNode(newName); name.appendChild(nametxt); - TQDomElement caption = xmlDoc.createElement(TQString::tqfromLatin1("caption")); + TQDomElement caption = xmlDoc.createElement(TQString::fromLatin1("caption")); img.appendChild(caption); TQDomText captiontxt = xmlDoc.createTextNode(comment); caption.appendChild(captiontxt); |