summaryrefslogtreecommitdiffstats
path: root/src/item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/item.cpp b/src/item.cpp
index 884ee17..2a59719 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -381,22 +381,22 @@ int Item::level() const
}
-ItemList Item::tqchildren( bool includeGrandChildren ) const
+ItemList Item::children( bool includeGrandChildren ) const
{
if (!includeGrandChildren)
- return m_tqchildren;
+ return m_children;
- ItemList tqchildren = m_tqchildren;
- ItemList::const_iterator end = m_tqchildren.end();
- for ( ItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
+ ItemList children = m_children;
+ ItemList::const_iterator end = m_children.end();
+ for ( ItemList::const_iterator it = m_children.begin(); it != end; ++it )
{
if (!*it)
continue;
- tqchildren += (*it)->tqchildren(true);
+ children += (*it)->children(true);
}
- return tqchildren;
+ return children;
}
@@ -417,7 +417,7 @@ void Item::addChild( Item *child )
return;
}
- m_tqchildren.append(child);
+ m_children.append(child);
connect( child, TQT_SIGNAL(removed(Item* )), this, TQT_SLOT(removeChild(Item* )) );
child->setParentItem(this);
@@ -428,10 +428,10 @@ void Item::addChild( Item *child )
void Item::removeChild( Item *child )
{
- if ( !child || !m_tqchildren.contains(child) )
+ if ( !child || !m_children.contains(child) )
return;
- m_tqchildren.remove(child);
+ m_children.remove(child);
disconnect( child, TQT_SIGNAL(removed(Item* )), this, TQT_SLOT(removeChild(Item* )) );
childRemoved(child);
@@ -441,8 +441,8 @@ void Item::removeChild( Item *child )
bool Item::contains( Item *item, bool direct ) const
{
- const ItemList::const_iterator end = m_tqchildren.end();
- for ( ItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
+ const ItemList::const_iterator end = m_children.end();
+ for ( ItemList::const_iterator it = m_children.begin(); it != end; ++it )
{
if ( (Item*)*it == item || ( !direct && (*it)->contains( item, false ) ) )
return true;
@@ -468,8 +468,8 @@ void Item::updateZ( int baseZ )
setZ(z);
- const ItemList::const_iterator end = m_tqchildren.end();
- for ( ItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
+ const ItemList::const_iterator end = m_children.end();
+ for ( ItemList::const_iterator it = m_children.begin(); it != end; ++it )
{
if (*it)
(*it)->updateZ(baseZ+1);