summaryrefslogtreecommitdiffstats
path: root/src/item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/item.cpp b/src/item.cpp
index 48f2c91..884ee17 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -17,7 +17,7 @@
#include <kdialogbase.h>
#include <ktextedit.h>
#include <tqbitarray.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqtimer.h>
const int minPrefixExp = -24;
@@ -313,11 +313,11 @@ bool Item::mouseDoubleClickEvent( const EventInfo &eventInfo )
KDialogBase *dlg = new KDialogBase( 0l, "", true, v->editorCaption(), KDialogBase::Ok|KDialogBase::Cancel|KDialogBase::User1, KDialogBase::Ok, false, KStdGuiItem::clear() );
TQFrame *frame = dlg->makeMainWidget();
- TQVBoxLayout *layout = new TQVBoxLayout( frame, 0, dlg->spacingHint() );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( frame, 0, dlg->spacingHint() );
KTextEdit *textEdit = new KTextEdit( frame );
textEdit->setTextFormat( PlainText );
textEdit->setText( v->value().toString() );
- layout->addWidget( textEdit, 10 );
+ tqlayout->addWidget( textEdit, 10 );
textEdit->setFocus();
connect( dlg, TQT_SIGNAL( user1Clicked() ), textEdit, TQT_SLOT( clear() ) );
dlg->setMinimumWidth( 600 );
@@ -381,22 +381,22 @@ int Item::level() const
}
-ItemList Item::children( bool includeGrandChildren ) const
+ItemList Item::tqchildren( bool includeGrandChildren ) const
{
if (!includeGrandChildren)
- return m_children;
+ return m_tqchildren;
- ItemList children = m_children;
- ItemList::const_iterator end = m_children.end();
- for ( ItemList::const_iterator it = m_children.begin(); it != end; ++it )
+ ItemList tqchildren = m_tqchildren;
+ ItemList::const_iterator end = m_tqchildren.end();
+ for ( ItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
{
if (!*it)
continue;
- children += (*it)->children(true);
+ tqchildren += (*it)->tqchildren(true);
}
- return children;
+ return tqchildren;
}
@@ -417,7 +417,7 @@ void Item::addChild( Item *child )
return;
}
- m_children.append(child);
+ m_tqchildren.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_children.contains(child) )
+ if ( !child || !m_tqchildren.contains(child) )
return;
- m_children.remove(child);
+ m_tqchildren.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_children.end();
- for ( ItemList::const_iterator it = m_children.begin(); it != end; ++it )
+ const ItemList::const_iterator end = m_tqchildren.end();
+ for ( ItemList::const_iterator it = m_tqchildren.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_children.end();
- for ( ItemList::const_iterator it = m_children.begin(); it != end; ++it )
+ const ItemList::const_iterator end = m_tqchildren.end();
+ for ( ItemList::const_iterator it = m_tqchildren.begin(); it != end; ++it )
{
if (*it)
(*it)->updateZ(baseZ+1);