summaryrefslogtreecommitdiffstats
path: root/quanta/components/framewizard/treenode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/components/framewizard/treenode.cpp')
-rw-r--r--quanta/components/framewizard/treenode.cpp22
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);