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 | e05894553004a47b1e2f276bedcf5963b57a3932 (patch) | |
tree | 2c12af14a609c053131e3a463068fa7589e6ac6a /src/gui/itemselector.cpp | |
parent | 60cba8acf96454af45641d6190a3f2ac9f9ff9b0 (diff) | |
download | ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.tar.gz ktechlab-e05894553004a47b1e2f276bedcf5963b57a3932.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/itemselector.cpp')
-rw-r--r-- | src/gui/itemselector.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/itemselector.cpp b/src/gui/itemselector.cpp index 32ff6da..38db8f3 100644 --- a/src/gui/itemselector.cpp +++ b/src/gui/itemselector.cpp @@ -88,14 +88,14 @@ void ItemSelector::addItem( const TQString & caption, const TQString & id, const { category.remove(0,1); TQString cat; - category.tqreplace( "\\/", "|" ); - int pos = category.tqfind('/'); + category.replace( "\\/", "|" ); + int pos = category.find('/'); if ( pos == -1 ) cat = category; else cat = category.left( pos ); - cat.tqreplace( "|", "/" ); + cat.replace( "|", "/" ); - if ( m_categories.tqfindIndex(cat) == -1 ) + if ( m_categories.findIndex(cat) == -1 ) { m_categories.append(cat); @@ -112,11 +112,11 @@ void ItemSelector::addItem( const TQString & caption, const TQString & id, const } else { - parentItem = (ILVItem*)tqfindItem( cat, 0 ); + parentItem = (ILVItem*)findItem( cat, 0 ); } category.remove( 0, pos ); - } while ( category.tqcontains('/') ); + } while ( category.contains('/') ); if ( !parentItem ) { @@ -139,7 +139,7 @@ void ItemSelector::writeOpenStates() const TQStringList::iterator end = m_categories.end(); for ( TQStringList::iterator it = m_categories.begin(); it != end; ++it ) { - TQListViewItem *item = tqfindItem( *it, 0 ); + TQListViewItem *item = findItem( *it, 0 ); if (item) { config->writeEntry( *it+"IsOpen", item->isOpen() ); } |