From f176190ca6b0706ec1217d0da075c9513af80c0b Mon Sep 17 00:00:00 2001
From: Timothy Pearson
Date: Mon, 19 Dec 2011 11:43:35 -0600
Subject: [PATCH] Remove additional unneeded tq method conversions
---
.../acquireimages/acquireimagedialog.cpp | 16 ++++----
.../batchprocessimagesdialog.cpp | 8 ++--
.../batchprocessimagesdialog.h | 2 +-
.../batchprocessimagesitem.cpp | 8 ++--
.../batchprocessimagesitem.h | 2 +-
.../batchprocessimages/imagepreview.cpp | 4 +-
.../batchprocessimages/renameimagesbase.ui | 2 +-
kipi-plugins/calendar/caleventsbase.ui | 4 +-
kipi-plugins/calendar/caltemplate.cpp | 2 +-
kipi-plugins/calendar/calwizard.cpp | 10 ++---
kipi-plugins/cdarchiving/cdarchiving.cpp | 26 ++++++-------
.../cdarchiving/cdarchivingdialog.cpp | 4 +-
.../cdarchiving/plugin_cdarchiving.cpp | 14 +++----
kipi-plugins/findimages/displaycompare.cpp | 20 +++++-----
kipi-plugins/findimages/plugin_findimages.cpp | 18 ++++-----
kipi-plugins/flickrexport/flickrtalker.cpp | 2 +-
kipi-plugins/flickrexport/flickrwindow.cpp | 6 +--
kipi-plugins/galleryexport/galleries.cpp | 20 +++++-----
kipi-plugins/galleryexport/gallerympform.cpp | 2 +-
kipi-plugins/galleryexport/gallerywindow.cpp | 24 ++++++------
kipi-plugins/gpssync/gpseditdialog.cpp | 2 +-
kipi-plugins/gpssync/gpslistviewitem.cpp | 16 ++++----
kipi-plugins/gpssync/gpslistviewitem.h | 2 +-
kipi-plugins/gpssync/gpssyncdialog.cpp | 10 ++---
kipi-plugins/gpssync/kmlexport.cpp | 38 +++++++++----------
kipi-plugins/gpssync/kmlexportconfig.cpp | 2 +-
kipi-plugins/gpssync/kmlgpsdataparser.cpp | 8 ++--
kipi-plugins/gpssync/plugin_gpssync.cpp | 10 ++---
kipi-plugins/htmlexport/generator.cpp | 26 ++++++-------
.../htmlexport/listthemeparameter.cpp | 4 +-
.../htmlexport/themeparameterspage.ui | 2 +-
kipi-plugins/htmlexport/wizard.cpp | 8 ++--
kipi-plugins/ipodexport/ipodexportdialog.cpp | 2 +-
kipi-plugins/ipodexport/ipodheader.cpp | 6 +--
.../jpeglossless/convert2grayscale.cpp | 2 +-
kipi-plugins/jpeglossless/imageflip.cpp | 2 +-
kipi-plugins/jpeglossless/imagerotate.cpp | 2 +-
.../jpeglossless/plugin_jpeglossless.cpp | 10 ++---
kipi-plugins/jpeglossless/utils.cpp | 2 +-
kipi-plugins/kameraklient/cameraiconitem.cpp | 2 +-
kipi-plugins/kameraklient/cameraiconview.cpp | 2 +-
kipi-plugins/kameraklient/cameraui.cpp | 4 +-
kipi-plugins/kameraklient/gpcontroller.cpp | 16 ++++----
kipi-plugins/kameraklient/savefiledialog.cpp | 2 +-
kipi-plugins/kameraklient/thumbitem.cpp | 10 ++---
kipi-plugins/kameraklient/thumbitem.h | 2 +-
kipi-plugins/kameraklient/thumbview.cpp | 6 +--
.../metadataedit/commenteditdialog.cpp | 2 +-
.../metadataedit/commentremovedialog.cpp | 2 +-
kipi-plugins/metadataedit/exifcaption.cpp | 2 +-
kipi-plugins/metadataedit/exifdatetime.cpp | 2 +-
kipi-plugins/metadataedit/exifeditdialog.cpp | 8 ++--
kipi-plugins/metadataedit/iptccaption.cpp | 2 +-
kipi-plugins/metadataedit/iptcdatetime.cpp | 2 +-
kipi-plugins/metadataedit/iptceditdialog.cpp | 8 ++--
kipi-plugins/metadataedit/iptcorigin.cpp | 2 +-
kipi-plugins/metadataedit/iptcstatus.cpp | 4 +-
.../metadataedit/plugin_metadataedit.cpp | 12 +++---
kipi-plugins/mpegencoder/images2mpg | 4 +-
kipi-plugins/mpegencoder/kimg2mpg.cpp | 18 ++++-----
kipi-plugins/mpegencoder/kimg2mpgbase.ui | 14 +++----
kipi-plugins/picasawebexport/mpform.cpp | 4 +-
.../picasawebexport/picasawebtalker.cpp | 26 ++++++-------
.../picasawebexport/picasawebwindow.cpp | 4 +-
kipi-plugins/picasawebexport/uploadwidget.ui | 4 +-
kipi-plugins/printwizard/cropframe.cpp | 8 ++--
kipi-plugins/printwizard/frmprintwizard.cpp | 6 +--
.../printwizard/frmprintwizardbase.ui | 28 +++++++-------
kipi-plugins/rawconverter/actionthread.cpp | 14 +++----
kipi-plugins/rawconverter/batchdialog.cpp | 4 +-
kipi-plugins/rawconverter/clistviewitem.h | 8 ++--
.../rawconverter/plugin_rawconverter.cpp | 2 +-
.../rawconverter/rawdecodingiface.cpp | 6 +--
kipi-plugins/rawconverter/singledialog.cpp | 4 +-
kipi-plugins/sendimages/plugin_sendimages.cpp | 8 ++--
kipi-plugins/sendimages/sendimages.cpp | 18 ++++-----
kipi-plugins/sendimages/sendimagesdialog.cpp | 16 ++++----
.../simpleviewerexport/simpleviewerexport.cpp | 22 +++++------
kipi-plugins/slideshow/slideshowconfig.cpp | 8 ++--
kipi-plugins/slideshow/slideshowconfigbase.ui | 2 +-
kipi-plugins/sync/gallerywindow.cpp | 24 ++++++------
kipi-plugins/sync/sinks.cpp | 4 +-
.../sync/sinks/gallery/galleryform.cpp | 2 +-
.../sync/sinks/gallery/gallerysink.cpp | 16 ++++----
kipi-plugins/timeadjust/timeadjustdialog.cpp | 2 +-
kipi-plugins/wallpaper/plugin_wallpaper.cpp | 2 +-
86 files changed, 358 insertions(+), 358 deletions(-)
diff --git a/kipi-plugins/acquireimages/acquireimagedialog.cpp b/kipi-plugins/acquireimages/acquireimagedialog.cpp
index 014d88a..2499a59 100644
--- a/kipi-plugins/acquireimages/acquireimagedialog.cpp
+++ b/kipi-plugins/acquireimages/acquireimagedialog.cpp
@@ -390,10 +390,10 @@ void AcquireImageDialog::slotAlbumSelected( const KURL &url )
items.setNum((*albumIt).images().count());
}
- m_AlbumComments->setText( i18n("Caption: %1").tqarg(comments) );
- m_AlbumCollection->setText( i18n("Collection: %1").tqarg(category) );
- m_AlbumDate->setText( i18n("Date: %1").tqarg(date) );
- m_AlbumItems->setText( i18n("Items: %1").tqarg( items ) );
+ m_AlbumComments->setText( i18n("Caption: %1").arg(comments) );
+ m_AlbumCollection->setText( i18n("Collection: %1").arg(category) );
+ m_AlbumDate->setText( i18n("Date: %1").arg(date) );
+ m_AlbumItems->setText( i18n("Items: %1").arg( items ) );
}
void AcquireImageDialog::slotOk()
@@ -432,7 +432,7 @@ void AcquireImageDialog::slotOk()
{
for (int idx = 1; idx < 100 ; ++idx)
{
- url.setFileName(TQString("%1_%2%3").tqarg(fileName).tqarg(idx).tqarg(ext));
+ url.setFileName(TQString("%1_%2%3").arg(fileName).arg(idx).arg(ext));
kdDebug(51001) << "File already exist. Try to fixed target Url to: " << url.prettyURL() << endl;
if (!KIO::NetAccess::exists(url, false NETACCESS_WIDGET))
@@ -471,7 +471,7 @@ void AcquireImageDialog::slotOk()
if ( !ok )
{
- KMessageBox::error(this, i18n("Cannot write image file \"%1\".").tqarg(imagePath));
+ KMessageBox::error(this, i18n("Cannot write image file \"%1\".").arg(imagePath));
return;
}
@@ -480,7 +480,7 @@ void AcquireImageDialog::slotOk()
{
if (!KIO::NetAccess::upload(imagePath, url NETACCESS_WIDGET))
{
- KMessageBox::error(this, i18n("Could not upload image to \"%1\".").tqarg(url.prettyURL()));
+ KMessageBox::error(this, i18n("Could not upload image to \"%1\".").arg(url.prettyURL()));
return;
}
}
@@ -491,7 +491,7 @@ void AcquireImageDialog::slotOk()
if ( !ok )
{
KMessageBox::error(this, i18n("Error when informing the application about the new image. "
- "The error was: %1" ).tqarg( err ) );
+ "The error was: %1" ).arg( err ) );
return;
}
diff --git a/kipi-plugins/batchprocessimages/batchprocessimagesdialog.cpp b/kipi-plugins/batchprocessimages/batchprocessimagesdialog.cpp
index 72ee0f7..c339388 100644
--- a/kipi-plugins/batchprocessimages/batchprocessimagesdialog.cpp
+++ b/kipi-plugins/batchprocessimages/batchprocessimagesdialog.cpp
@@ -487,7 +487,7 @@ bool BatchProcessImagesDialog::startProcess(void)
{
int ValRet = KMessageBox::warningYesNoCancel(this,
i18n("The destination file \"%1\" already exists;\n"
- "do you want overwrite it?").tqarg(item->nameDest()),
+ "do you want overwrite it?").arg(item->nameDest()),
i18n("Overwrite Destination Image File"), KStdGuiItem::cont());
if ( ValRet == KMessageBox::No )
@@ -690,7 +690,7 @@ void BatchProcessImagesDialog::slotProcessDone(KProcess* proc)
{
int code = KMessageBox::warningContinueCancel( this,
i18n("Error adding image to application; error message was: "
- "%1").tqarg( errmsg ),
+ "%1").arg( errmsg ),
i18n("Error Adding Image to Application") );
if ( code == KMessageBox::Cancel )
@@ -761,7 +761,7 @@ void BatchProcessImagesDialog::slotListDoubleClicked(TQListViewItem *itemClicked
i18n("Image processing error"),
item->outputMess(),
i18n("Image \"%1\": %2\n\nThe output messages are:\n")
- .tqarg(item->nameSrc()).tqarg(item->error())
+ .arg(item->nameSrc()).arg(item->error())
);
infoDialog->exec();
}
@@ -880,7 +880,7 @@ void BatchProcessImagesDialog::slotPreviewProcessDone(KProcess* proc)
m_previewOutput,
i18n("Cannot process preview for image \"%1\"."
"\nThe output messages are:\n")
- .tqarg(item->nameSrc())
+ .arg(item->nameSrc())
);
infoDialog->exec();
}
diff --git a/kipi-plugins/batchprocessimages/batchprocessimagesdialog.h b/kipi-plugins/batchprocessimages/batchprocessimagesdialog.h
index 9ad1d0d..631046e 100644
--- a/kipi-plugins/batchprocessimages/batchprocessimagesdialog.h
+++ b/kipi-plugins/batchprocessimages/batchprocessimagesdialog.h
@@ -81,7 +81,7 @@ Q_OBJECT
public:
// Don't forget to add the 'm_Type' and 'm_labelType' implementation in the constructor of
- // tqchildren dialog class.
+ // children dialog class.
BatchProcessImagesDialog( KURL::List urlList, KIPI::Interface* interface, TQString caption, TQWidget *parent=0 );
~BatchProcessImagesDialog();
diff --git a/kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp b/kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp
index 6d69155..af5f2b8 100644
--- a/kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp
+++ b/kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp
@@ -62,24 +62,24 @@ void BatchProcessImagesItem::changeError(TQString text) { _error = text; }
void BatchProcessImagesItem::changeNameDest(TQString text) { _nameDest = text; setText(2, _nameDest); }
void BatchProcessImagesItem::changeOutputMess(TQString text) { _outputMess.append(text); }
-void BatchProcessImagesItem::paintCell (TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment)
+void BatchProcessImagesItem::paintCell (TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment)
{
TQColorGroup _cg( cg );
if (text(3) != i18n("OK") && !text(3).isEmpty() )
{
_cg.setColor( TQColorGroup::Text, TQt::red );
- KListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ KListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
if (text(3) == i18n("OK") )
{
_cg.setColor( TQColorGroup::Text, TQt::darkGreen );
- KListViewItem::paintCell( p, _cg, column, width, tqalignment );
+ KListViewItem::paintCell( p, _cg, column, width, alignment );
return;
}
- KListViewItem::paintCell( p, cg, column, width, tqalignment );
+ KListViewItem::paintCell( p, cg, column, width, alignment );
}
bool BatchProcessImagesItem::overWrote()
diff --git a/kipi-plugins/batchprocessimages/batchprocessimagesitem.h b/kipi-plugins/batchprocessimages/batchprocessimagesitem.h
index 60b12c4..d17f9e7 100644
--- a/kipi-plugins/batchprocessimages/batchprocessimagesitem.h
+++ b/kipi-plugins/batchprocessimages/batchprocessimagesitem.h
@@ -61,7 +61,7 @@ public:
void changeNameDest(TQString text);
void changeOutputMess(TQString text);
- void paintCell (TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment);
+ void paintCell (TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment);
void setKey(const TQString& val, bool reverseSort);
TQString key(int column, bool ascending) const;
diff --git a/kipi-plugins/batchprocessimages/imagepreview.cpp b/kipi-plugins/batchprocessimages/imagepreview.cpp
index d3248bd..783e20c 100644
--- a/kipi-plugins/batchprocessimages/imagepreview.cpp
+++ b/kipi-plugins/batchprocessimages/imagepreview.cpp
@@ -80,8 +80,8 @@ int INIT_ZOOM_FACTOR;
ImagePreview::ImagePreview(const TQString &fileOrig, const TQString &fileDest, const TQString &tmpPath,
bool cropActionOrig, bool cropActionDest, const TQString &EffectName,
const TQString &FileName, TQWidget *parent)
- : KDialogBase( parent, "PreviewDialog", true, i18n("Batch Process Preview (%1 - %2)").tqarg(EffectName)
- .tqarg(FileName), Help|Ok, Ok, true)
+ : KDialogBase( parent, "PreviewDialog", true, i18n("Batch Process Preview (%1 - %2)").arg(EffectName)
+ .arg(FileName), Help|Ok, Ok, true)
{
// About data and help button.
diff --git a/kipi-plugins/batchprocessimages/renameimagesbase.ui b/kipi-plugins/batchprocessimages/renameimagesbase.ui
index 75c390f..779fecf 100644
--- a/kipi-plugins/batchprocessimages/renameimagesbase.ui
+++ b/kipi-plugins/batchprocessimages/renameimagesbase.ui
@@ -157,7 +157,7 @@
-
+
AlignTop|AlignHCenter
diff --git a/kipi-plugins/calendar/caleventsbase.ui b/kipi-plugins/calendar/caleventsbase.ui
index 80dff76..6307181 100644
--- a/kipi-plugins/calendar/caleventsbase.ui
+++ b/kipi-plugins/calendar/caleventsbase.ui
@@ -77,7 +77,7 @@
You can download a calendar for your country from http://www.icalshare.com/ or other sites.
This is fully optional. All the events from this calendar will be printed red.
-
+
WordBreak|AlignVCenter
@@ -161,7 +161,7 @@ This is fully optional. All the events from this calendar will be printed red.
You can create such a calendar using KOrganizer or any other calendar program.
This is fully optional. All the events from this calendar will be printed green.
-
+
WordBreak|AlignVCenter
diff --git a/kipi-plugins/calendar/caltemplate.cpp b/kipi-plugins/calendar/caltemplate.cpp
index 21ccf88..dd97df9 100644
--- a/kipi-plugins/calendar/caltemplate.cpp
+++ b/kipi-plugins/calendar/caltemplate.cpp
@@ -153,7 +153,7 @@ CalTemplate::CalTemplate(TQWidget* parent, const char* name)
htqlayout->addWidget( comboFont_ );
TQFontDatabase fontDB;
- TQStringList families(fontDB.tqfamilies());
+ TQStringList families(fontDB.families());
TQStringList smoothScalableFamilies;
for (TQStringList::iterator it=families.begin(); it != families.end();
++it)
diff --git a/kipi-plugins/calendar/calwizard.cpp b/kipi-plugins/calendar/calwizard.cpp
index 935ae87..818616f 100644
--- a/kipi-plugins/calendar/calwizard.cpp
+++ b/kipi-plugins/calendar/calwizard.cpp
@@ -229,7 +229,7 @@ void CalWizard::slotPageSelected(const TQString&)
"of that part of the generation of the calendar.");
wPrintLabel_->setText(i18n("Click Next to start Printing
"
- "Following months will be printed for year %1:").tqarg(year)
+ "Following months will be printed for year %1:").arg(year)
+ TQString("
")
+ printList.join(" - ") + extra + extra2);
wPrintLabel_->setTextFormat(TQt::RichText);
@@ -320,12 +320,12 @@ void CalWizard::slotPrintOnePage()
#if KDE_IS_VERSION(3,2,0)
wFinishLabel_->setText(i18n("Printing Calendar Page for %1 of %2")
- .tqarg(KGlobal::locale()->calendar()->monthName(month, cSettings_->getYear(), false))
- .tqarg(yearName));
+ .arg(KGlobal::locale()->calendar()->monthName(month, cSettings_->getYear(), false))
+ .arg(yearName));
#else
wFinishLabel_->setText(i18n("Printing Calendar Page for %1 of %2")
- .tqarg(KGlobal::locale()->monthName(month)).
- .tqarg(yearName));
+ .arg(KGlobal::locale()->monthName(month)).
+ .arg(yearName));
#endif
currPage_++;
diff --git a/kipi-plugins/cdarchiving/cdarchiving.cpp b/kipi-plugins/cdarchiving/cdarchiving.cpp
index d9519ab..ca763d1 100644
--- a/kipi-plugins/cdarchiving/cdarchiving.cpp
+++ b/kipi-plugins/cdarchiving/cdarchiving.cpp
@@ -464,7 +464,7 @@ void CDArchiving::slotK3bDone(KProcess*)
d->action = KIPICDArchivingPlugin::Error;
d->starting = false;
d->success = false;
- d->message = i18n("Cannot remove temporary folder '%1'.").tqarg(m_tmpFolder);
+ d->message = i18n("Cannot remove temporary folder '%1'.").arg(m_tmpFolder);
TQApplication::sendEvent(m_parent, new TQCustomEvent(TQEvent::User, d));
usleep(1000);
}
@@ -494,7 +494,7 @@ bool CDArchiving::buildHTMLInterface (void)
d->action = KIPICDArchivingPlugin::Error;
d->starting = false;
d->success = false;
- d->message = i18n("Cannot remove folder '%1'.").tqarg(MainTPath);
+ d->message = i18n("Cannot remove folder '%1'.").arg(MainTPath);
TQApplication::sendEvent(m_parent, new TQCustomEvent(TQEvent::User, d));
usleep(1000);
return false;
@@ -507,7 +507,7 @@ bool CDArchiving::buildHTMLInterface (void)
d->action = KIPICDArchivingPlugin::Error;
d->starting = false;
d->success = false;
- d->message = i18n("Could not create folder '%1'.").tqarg(MainTPath);
+ d->message = i18n("Could not create folder '%1'.").arg(MainTPath);
TQApplication::sendEvent(m_parent, new TQCustomEvent(TQEvent::User, d));
usleep(1000);
return false;
@@ -556,7 +556,7 @@ bool CDArchiving::buildHTMLInterface (void)
d->action = KIPICDArchivingPlugin::Error;
d->starting = false;
d->success = false;
- d->message = i18n("Could not create folder '%1'.").tqarg(SubTPath);
+ d->message = i18n("Could not create folder '%1'.").arg(SubTPath);
TQApplication::sendEvent(m_parent, new TQCustomEvent(TQEvent::User, d));
usleep(1000);
return false;
@@ -586,7 +586,7 @@ bool CDArchiving::buildHTMLInterface (void)
d->action = KIPICDArchivingPlugin::Error;
d->starting = false;
d->success = false;
- d->message = i18n("Cannot remove folder '%1'.").tqarg(MainTPath);
+ d->message = i18n("Cannot remove folder '%1'.").arg(MainTPath);
TQApplication::sendEvent(m_parent, new TQCustomEvent(TQEvent::User, d));
usleep(1000);
return false;
@@ -623,7 +623,7 @@ bool CDArchiving::buildHTMLInterface (void)
d->action = KIPICDArchivingPlugin::Error;
d->starting = false;
d->success = false;
- d->message = i18n("Could not open file '%1'.").tqarg(MainUrl.path(+1));
+ d->message = i18n("Could not open file '%1'.").arg(MainUrl.path(+1));
TQApplication::sendEvent(m_parent, new TQCustomEvent(TQEvent::User, d));
usleep(1000);
return false;
@@ -649,7 +649,7 @@ bool CDArchiving::createDirectory(TQDir thumb_dir, TQString imgGalleryDir, TQStr
d->starting = false;
d->success = false;
d->message = i18n("Could not create folder '%1' in '%2'.")
- .tqarg(dirName).tqarg(imgGalleryDir);
+ .arg(dirName).arg(imgGalleryDir);
TQApplication::sendEvent(m_parent, new TQCustomEvent(TQEvent::User, d));
usleep(1000);
return false;
@@ -961,7 +961,7 @@ void CDArchiving::createBody(TQTextStream& stream,
<< "\" height=\"31\" width=\"88\" title=\"" << Temp << "\" />" << endl;
Temp = i18n("Album archive created with "
- "%2 on %3").tqarg(m_hostURL).tqarg(m_hostName).tqarg(today);
+ "%2 on %3").arg(m_hostURL).arg(m_hostName).arg(today);
stream << Temp << endl;
stream << "
" << endl;
@@ -1001,7 +1001,7 @@ void CDArchiving::createBodyMainPage(TQTextStream& stream, KURL& url)
<< Temp << "\" />" << endl;
Temp = i18n("Album archive created with "
- "%2 on %3").tqarg(m_hostURL).tqarg(m_hostName).tqarg(today);
+ "%2 on %3").arg(m_hostURL).arg(m_hostName).arg(today);
stream << Temp << endl;
stream << "" << endl;
stream << "