diff options
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() ); } |