From b6edfe41c9395f2e20784cbf0e630af6426950a3 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kexi/widget/pixmapcollection.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kexi/widget/pixmapcollection.cpp') diff --git a/kexi/widget/pixmapcollection.cpp b/kexi/widget/pixmapcollection.cpp index f5bc4d9e..fecc5b76 100644 --- a/kexi/widget/pixmapcollection.cpp +++ b/kexi/widget/pixmapcollection.cpp @@ -50,7 +50,7 @@ TQString PixmapCollection::addPixmapPath(const KURL &url) { TQString name = url.filename(); - while(m_pixmaps.tqcontains(name)) + while(m_pixmaps.contains(name)) { bool ok; int num = name.right(1).toInt(&ok, 10); @@ -68,7 +68,7 @@ TQString PixmapCollection::addPixmapName(const TQString &icon, int size) { TQString name = icon; - while(m_pixmaps.tqcontains(name)) + while(m_pixmaps.contains(name)) { bool ok; int num = name.right(1).toInt(&ok, 10); @@ -91,7 +91,7 @@ PixmapCollection::removePixmap(const TQString &name) TQPixmap PixmapCollection::getPixmap(const TQString &name) { - if(!m_pixmaps.tqcontains(name)) + if(!m_pixmaps.contains(name)) { kdDebug() << " The icon " << name << " you requested is not in the collection" << endl; return TQPixmap(); @@ -106,9 +106,9 @@ PixmapCollection::getPixmap(const TQString &name) } bool -PixmapCollection::tqcontains(const TQString &name) +PixmapCollection::contains(const TQString &name) { - return m_pixmaps.tqcontains(name); + return m_pixmaps.contains(name); } void @@ -351,7 +351,7 @@ void PixmapCollectionEditor::renameCollectionItem(TQIconViewItem *it, const TQString &name) { PixmapIconViewItem *item = static_cast(it); - if(!m_collection->m_pixmaps.tqcontains(item->name())) + if(!m_collection->m_pixmaps.contains(item->name())) return; // We just rename the collection item @@ -390,7 +390,7 @@ PixmapCollectionChooser::PixmapCollectionChooser(PixmapCollection *collection, c for(it = collection->m_pixmaps.constBegin(); it != endIt; ++it) new PixmapIconViewItem(m_iconView, it.key(), getPixmap(it.key())); - TQIconViewItem *item = m_iconView->tqfindItem(selectedItem, TQt::ExactMatch); + TQIconViewItem *item = m_iconView->findItem(selectedItem, TQt::ExactMatch); if(item && !selectedItem.isEmpty()) m_iconView->setCurrentItem(item); } -- cgit v1.2.1