diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:39:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:39:40 -0600 |
commit | 1fc61c6e1d0a2b34f7b1d0de181bb4e6f954a8c2 (patch) | |
tree | fdf34e0c9a4211231bb084fb40d30d2dff677dea /src/item.cpp | |
parent | abb8cd68f820cfe0c96965136890a6bdd1093db5 (diff) | |
download | ktechlab-1fc61c6e1d0a2b34f7b1d0de181bb4e6f954a8c2.tar.gz ktechlab-1fc61c6e1d0a2b34f7b1d0de181bb4e6f954a8c2.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'src/item.cpp')
-rw-r--r-- | src/item.cpp | 28 |
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); |