diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 94ec53c96c3d5dc4a427e7dc4bbaa863add5cfa4 (patch) | |
tree | 0425f63afbe46c26d58a6bbcf8a7e6d026a1bb7e /kipi-plugins/sync | |
parent | f899c4c05f6b7578b8317ae8a1f71801e8d4b5d0 (diff) | |
download | kipi-plugins-94ec53c96c3d5dc4a427e7dc4bbaa863add5cfa4.tar.gz kipi-plugins-94ec53c96c3d5dc4a427e7dc4bbaa863add5cfa4.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/kipi-plugins@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kipi-plugins/sync')
-rw-r--r-- | kipi-plugins/sync/gallerywindow.cpp | 4 | ||||
-rw-r--r-- | kipi-plugins/sync/sinkfactory.cpp | 4 | ||||
-rw-r--r-- | kipi-plugins/sync/sinks/gallery/gallerysink.cpp | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/kipi-plugins/sync/gallerywindow.cpp b/kipi-plugins/sync/gallerywindow.cpp index 958ad6f..ebaf53e 100644 --- a/kipi-plugins/sync/gallerywindow.cpp +++ b/kipi-plugins/sync/gallerywindow.cpp @@ -285,7 +285,7 @@ void GalleryWindow::slotAlbums( const TQValueList<GAlbum>& albumList ) } else { - TQListViewItem* tqparent = m_albumDict.tqfind( album.parent_ref_num ); + TQListViewItem* tqparent = m_albumDict.find( album.parent_ref_num ); if ( tqparent ) { GAlbumViewItem* item = new GAlbumViewItem( tqparent, album.title, @@ -316,7 +316,7 @@ void GalleryWindow::slotAlbums( const TQValueList<GAlbum>& albumList ) if (lastSelectedID > 0) { - GAlbumViewItem* lastSelectedItem = m_albumDict.tqfind( lastSelectedID ); + GAlbumViewItem* lastSelectedItem = m_albumDict.find( lastSelectedID ); if (lastSelectedItem) { m_albumView->setSelected( lastSelectedItem, true ); diff --git a/kipi-plugins/sync/sinkfactory.cpp b/kipi-plugins/sync/sinkfactory.cpp index f3ebe28..3a528ee 100644 --- a/kipi-plugins/sync/sinkfactory.cpp +++ b/kipi-plugins/sync/sinkfactory.cpp @@ -27,7 +27,7 @@ SinkMap SinkFactory::mSinkProxies; // Define the register method bool SinkFactory::Register(TQString type, SinkProxy* pSinkProxy) { - if (mSinkProxies.tqcontains(type)) + if (mSinkProxies.contains(type)) return false; mSinkProxies[type] = pSinkProxy; @@ -37,7 +37,7 @@ bool SinkFactory::Register(TQString type, SinkProxy* pSinkProxy) // The main creation method Sink* SinkFactory::Create(TQString type, unsigned int sinkId, TQString name, KConfig* pConfig, KWallet::Wallet* pWallet) { - if (!mSinkProxies.tqcontains(type)) + if (!mSinkProxies.contains(type)) return NULL; return (*(mSinkProxies[type]))(sinkId, name, pConfig, pWallet); diff --git a/kipi-plugins/sync/sinks/gallery/gallerysink.cpp b/kipi-plugins/sync/sinks/gallery/gallerysink.cpp index 9e60716..acfae60 100644 --- a/kipi-plugins/sync/sinks/gallery/gallerysink.cpp +++ b/kipi-plugins/sync/sinks/gallery/gallerysink.cpp @@ -514,9 +514,9 @@ void GallerySink::parseResponseListPhotos(const TQByteArray &data) } else { - // Boris the Gallery default URL tqcontains "=" char. So we will split the string only from the first "=" char + // Boris the Gallery default URL contains "=" char. So we will split the string only from the first "=" char TQStringList strlist = TQStringList(); - strlist << line.left(line.tqfind('=')) << line.mid(line.tqfind('=')+1); + strlist << line.left(line.find('=')) << line.mid(line.find('=')+1); if (strlist.count() >= 2) { TQString key = strlist[0]; @@ -545,7 +545,7 @@ void GallerySink::parseResponseListPhotos(const TQByteArray &data) } else if (key.startsWith("baseurl")) { - albumURL = value.tqreplace("\\",""); + albumURL = value.replace("\\",""); } } } |