summaryrefslogtreecommitdiffstats
path: root/src/gui/itemselector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/itemselector.cpp')
-rw-r--r--src/gui/itemselector.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/itemselector.cpp b/src/gui/itemselector.cpp
index c02fffd..32ff6da 100644
--- a/src/gui/itemselector.cpp
+++ b/src/gui/itemselector.cpp
@@ -77,7 +77,7 @@ void ItemSelector::clear()
void ItemSelector::addItem( const TQString & caption, const TQString & id, const TQString & _category, const TQPixmap & icon, bool removable )
{
- ILVItem *tqparentItem = 0L;
+ ILVItem *parentItem = 0L;
TQString category = _category;
if ( !category.startsWith("/") ) {
@@ -99,32 +99,32 @@ void ItemSelector::addItem( const TQString & caption, const TQString & id, const
{
m_categories.append(cat);
- if (tqparentItem) {
- tqparentItem = new ILVItem( tqparentItem, "" );
+ if (parentItem) {
+ parentItem = new ILVItem( parentItem, "" );
}
else {
- tqparentItem = new ILVItem( this, "" );
+ parentItem = new ILVItem( this, "" );
}
- tqparentItem->setOpen( readOpenState(cat) );
+ parentItem->setOpen( readOpenState(cat) );
- tqparentItem->setExpandable(true);
- tqparentItem->setText( 0, cat );
+ parentItem->setExpandable(true);
+ parentItem->setText( 0, cat );
}
else
{
- tqparentItem = (ILVItem*)tqfindItem( cat, 0 );
+ parentItem = (ILVItem*)tqfindItem( cat, 0 );
}
category.remove( 0, pos );
} while ( category.tqcontains('/') );
- if ( !tqparentItem )
+ if ( !parentItem )
{
kdError() << "Unexpected error in finding tqparent item for category list"<<endl;
return;
}
- ILVItem *item = new ILVItem( tqparentItem, id );
+ ILVItem *item = new ILVItem( parentItem, id );
item->setPixmap( 0, icon );
item->setText( 0, caption );
item->setRemovable(removable);