summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/objecttree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/formeditor/objecttree.cpp')
-rw-r--r--kexi/formeditor/objecttree.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kexi/formeditor/objecttree.cpp b/kexi/formeditor/objecttree.cpp
index a00fbcbb..e2ada714 100644
--- a/kexi/formeditor/objecttree.cpp
+++ b/kexi/formeditor/objecttree.cpp
@@ -169,15 +169,15 @@ ObjectTree::rename(const TQString &oldname, const TQString &newname)
}
bool
-ObjectTree::reparent(const TQString &name, const TQString &newtqparent)
+ObjectTree::reparent(const TQString &name, const TQString &newparent)
{
ObjectTreeItem *item = lookup(name);
if(!item) return false;
- ObjectTreeItem *tqparent = lookup(newtqparent);
- if(!tqparent) return false;
+ ObjectTreeItem *parent = lookup(newparent);
+ if(!parent) return false;
- item->tqparent()->removeChild(item);
- tqparent->addChild(item);
+ item->parent()->removeChild(item);
+ parent->addChild(item);
return true;
}
@@ -191,16 +191,16 @@ ObjectTree::lookup(const TQString &name)
}
void
-ObjectTree::addItem(ObjectTreeItem *tqparent, ObjectTreeItem *c)
+ObjectTree::addItem(ObjectTreeItem *parent, ObjectTreeItem *c)
{
m_treeDict.insert(c->name(), c);
- if(!tqparent)
- tqparent = this;
- tqparent->addChild(c);
+ if(!parent)
+ parent = this;
+ parent->addChild(c);
m_container->form()->emitChildAdded(c);
- kdDebug() << "ObjectTree::addItem(): adding " << c->name() << " to " << tqparent->name() << endl;
+ kdDebug() << "ObjectTree::addItem(): adding " << c->name() << " to " << parent->name() << endl;
}
void
@@ -220,7 +220,7 @@ ObjectTree::removeItem(ObjectTreeItem *c)
removeItem(it->name());
m_treeDict.remove(c->name());
- c->tqparent()->removeChild(c);
+ c->parent()->removeChild(c);
delete c;
}