diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:43:35 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:43:35 -0600 |
commit | f176190ca6b0706ec1217d0da075c9513af80c0b (patch) | |
tree | 7642f68c8dff2a91c6d0df3b77f578249736b7d7 /kipi-plugins/sync | |
parent | 8d3892fee88fd0eef3363aeca316ff5c93d9da19 (diff) | |
download | kipi-plugins-f176190ca6b0706ec1217d0da075c9513af80c0b.tar.gz kipi-plugins-f176190ca6b0706ec1217d0da075c9513af80c0b.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'kipi-plugins/sync')
-rw-r--r-- | kipi-plugins/sync/gallerywindow.cpp | 24 | ||||
-rw-r--r-- | kipi-plugins/sync/sinks.cpp | 4 | ||||
-rw-r--r-- | kipi-plugins/sync/sinks/gallery/galleryform.cpp | 2 | ||||
-rw-r--r-- | kipi-plugins/sync/sinks/gallery/gallerysink.cpp | 16 |
4 files changed, 23 insertions, 23 deletions
diff --git a/kipi-plugins/sync/gallerywindow.cpp b/kipi-plugins/sync/gallerywindow.cpp index aa7c0fd..eaaee83 100644 --- a/kipi-plugins/sync/gallerywindow.cpp +++ b/kipi-plugins/sync/gallerywindow.cpp @@ -331,18 +331,18 @@ void GalleryWindow::slotPhotos( const TQValueList<GPhoto>& photoList) TQString styleSheet = TQString( "body { margin: 8px; font-size: %1px; " " color: %2; background-color: %3;}" ) - .tqarg( pxSize ) - .tqarg( colorGroup().text().name() ) - .tqarg( colorGroup().base().name() ); + .arg( pxSize ) + .arg( colorGroup().text().name() ) + .arg( colorGroup().base().name() ); styleSheet += TQString( "a { font-size: %1px; color: %2; " "text-decoration: none;}" ) - .tqarg( pxSize ) - .tqarg( colorGroup().text().name() ); + .arg( pxSize ) + .arg( colorGroup().text().name() ); styleSheet += TQString( "i { font-size: %1px; color: %2; " "text-decoration: none;}" ) - .tqarg( pxSize-2 ) - .tqarg( TQColor("steelblue").name() ); + .arg( pxSize-2 ) + .arg( TQColor("steelblue").name() ); m_photoView->begin(); m_photoView->setUserStyleSheet( styleSheet ); @@ -363,13 +363,13 @@ void GalleryWindow::slotPhotos( const TQValueList<GPhoto>& photoList) m_photoView->write( "<tr><td class='photo'>" + TQString("<a href='%1'>") - .tqarg(imageurl.url()) + .arg(imageurl.url()) + TQString("<img border=1 src=\"%1\"><br>") - .tqarg(thumburl.url()) + .arg(thumburl.url()) + photo.name + ( photo.caption.isEmpty() ? TQString() : TQString("<br><i>%1</i>") - .tqarg(photo.caption) ) + .arg(photo.caption) ) + "</a></td></tr>" ); } @@ -514,7 +514,7 @@ void GalleryWindow::slotNewAlbum() if (!clean) { KMessageBox::error( this, i18n("Sorry, these characters are not allowed in album name: %1") - .tqarg("\\ / * ? \" \' & < > | . + # ( ) or spaces") ); + .arg("\\ / * ? \" \' & < > | . + # ( ) or spaces") ); return; } @@ -584,7 +584,7 @@ void GalleryWindow::slotAddPhotoNext() } m_progressDlg->setLabelText( i18n("Uploading file %1 ") - .tqarg( KURL(pathComments.first).filename() ) ); + .arg( KURL(pathComments.first).filename() ) ); if (m_progressDlg->isHidden()) m_progressDlg->show(); diff --git a/kipi-plugins/sync/sinks.cpp b/kipi-plugins/sync/sinks.cpp index 55f370b..7acd734 100644 --- a/kipi-plugins/sync/sinks.cpp +++ b/kipi-plugins/sync/sinks.cpp @@ -96,8 +96,8 @@ Sinks::Sinks() if (sink_id > mMaxSinkId) mMaxSinkId = sink_id; - type = config.readEntry(TQString("Type%1").tqarg(sink_id)); - name = config.readEntry(TQString("Name%1").tqarg(sink_id)); + type = config.readEntry(TQString("Type%1").arg(sink_id)); + name = config.readEntry(TQString("Name%1").arg(sink_id)); Sink* p_sink = SinkFactory::Create(type, sink_id, name, &config, p_wallet); if (p_sink) mSinks.append(p_sink); diff --git a/kipi-plugins/sync/sinks/gallery/galleryform.cpp b/kipi-plugins/sync/sinks/gallery/galleryform.cpp index 9c90dfa..3207f67 100644 --- a/kipi-plugins/sync/sinks/gallery/galleryform.cpp +++ b/kipi-plugins/sync/sinks/gallery/galleryform.cpp @@ -58,7 +58,7 @@ GalleryForm::~GalleryForm() void GalleryForm::addPair(const TQString& name, const TQString& value) { if (Gallery2 == mVersion) - return addPairRaw(TQString("g2_form[%1]").tqarg(name), value); + return addPairRaw(TQString("g2_form[%1]").arg(name), value); return addPairRaw(name, value); } diff --git a/kipi-plugins/sync/sinks/gallery/gallerysink.cpp b/kipi-plugins/sync/sinks/gallery/gallerysink.cpp index 3035e27..c40b725 100644 --- a/kipi-plugins/sync/sinks/gallery/gallerysink.cpp +++ b/kipi-plugins/sync/sinks/gallery/gallerysink.cpp @@ -51,11 +51,11 @@ GallerySink::GallerySink(unsigned int sinkId, TQString name, KConfig* pConfig, K mpJob(0), m_loggedIn(false) { - TQString tmp = pConfig->readEntry(TQString("URL%1").tqarg(sinkId)); + TQString tmp = pConfig->readEntry(TQString("URL%1").arg(sinkId)); mURL = KURL(tmp); - mUsername = pConfig->readEntry(TQString("Username%1").tqarg(sinkId)); + mUsername = pConfig->readEntry(TQString("Username%1").arg(sinkId)); if (pWallet) - pWallet->readPassword(TQString("Password%1").tqarg(sinkId), mPassword); + pWallet->readPassword(TQString("Password%1").arg(sinkId), mPassword); } GallerySink::~GallerySink() @@ -72,12 +72,12 @@ const KIPI2::CollectionList* GallerySink::getCollections() void GallerySink::Save(KConfig* pConfig, KWallet::Wallet* pWallet) { - pConfig->writeEntry(TQString("Name%1").tqarg(mSinkId), mName); - pConfig->writeEntry(TQString("Type%1").tqarg(mSinkId), Type()); - pConfig->writeEntry(TQString("URL%1").tqarg(mSinkId), TQString(mURL.url())); - pConfig->writeEntry(TQString("Username%1").tqarg(mSinkId), mUsername); + pConfig->writeEntry(TQString("Name%1").arg(mSinkId), mName); + pConfig->writeEntry(TQString("Type%1").arg(mSinkId), Type()); + pConfig->writeEntry(TQString("URL%1").arg(mSinkId), TQString(mURL.url())); + pConfig->writeEntry(TQString("Username%1").arg(mSinkId), mUsername); if (pWallet) - pWallet->writePassword(TQString("Password%1").tqarg(mSinkId), mPassword); + pWallet->writePassword(TQString("Password%1").arg(mSinkId), mPassword); } |