diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:51:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:51:43 -0600 |
commit | 2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076 (patch) | |
tree | c57406ac640b2ce83ebc0ec0cbc96d0e3e40d9b5 /quanta/components/framewizard/treenode.cpp | |
parent | ff23fbd0f4265648d9a1d53f4230c3f7c78c4f77 (diff) | |
download | tdewebdev-2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076.tar.gz tdewebdev-2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'quanta/components/framewizard/treenode.cpp')
-rw-r--r-- | quanta/components/framewizard/treenode.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/quanta/components/framewizard/treenode.cpp b/quanta/components/framewizard/treenode.cpp index 2faaf3d6..fd1f187f 100644 --- a/quanta/components/framewizard/treenode.cpp +++ b/quanta/components/framewizard/treenode.cpp @@ -20,7 +20,7 @@ static const int SIZE = 101; treeNode::treeNode(const TQString &l, const TQString &pl) : m_label(l), m_parentLabel(pl), m_splitType(NONE){ - m_tqchildrenList.setAutoDelete(true); + m_childrenList.setAutoDelete(true); m_atts = new areaAttribute; } @@ -29,16 +29,16 @@ treeNode::~treeNode(){ } void treeNode::addChildNode(const TQString &l) { - m_tqchildrenList.append( new treeNode(l,m_label) ); + m_childrenList.append( new treeNode(l,m_label) ); } void treeNode::removeChildNode(const TQString &l,bool autoDelete) { - m_tqchildrenList.setAutoDelete(autoDelete); - m_tqchildrenList.remove(findChild(l)); + m_childrenList.setAutoDelete(autoDelete); + m_childrenList.remove(findChild(l)); } treeNode* treeNode::findChild(const TQString &l){ - TQPtrListIterator<treeNode> it( m_tqchildrenList ); + TQPtrListIterator<treeNode> it( m_childrenList ); treeNode *node; while ( (node = it.current()) != 0 ) { ++it; @@ -68,25 +68,25 @@ void tree::refreshGeometries(treeNode *n){ n->nextChild(); } - TQPtrList<treeNode> list = n->tqchildrenList(); + TQPtrList<treeNode> list = n->childrenList(); TQPtrListIterator<treeNode> it( list ); treeNode *node= it.current(); - TQRect newGeometry = n->atts()->tqgeometry(); + TQRect newGeometry = n->atts()->geometry(); if(n->splitType()==VERTICAL){ - newGeometry.setHeight(node->atts()->tqgeometry().height()); + newGeometry.setHeight(node->atts()->geometry().height()); while ( (node = it.current()) != 0 ) { ++it; - dim += node->atts()->tqgeometry().width(); + dim += node->atts()->geometry().width(); dim += 6; } newGeometry.setWidth(dim); } else if(n->splitType()==HORIZONTAL){ - newGeometry.setWidth(node->atts()->tqgeometry().width()); + newGeometry.setWidth(node->atts()->geometry().width()); while ( (node = it.current()) != 0 ) { ++it; - dim += node->atts()->tqgeometry().height(); + dim += node->atts()->geometry().height(); dim += 6; } newGeometry.setHeight(dim); |