summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/objecttree.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit04766b207afba7961d4d802313e426f5a2fbef63 (patch)
treec888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kexi/formeditor/objecttree.cpp
parentb6edfe41c9395f2e20784cbf0e630af6426950a3 (diff)
downloadkoffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz
koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;
}