diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kplato/kptnode.cc | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-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 'kplato/kptnode.cc')
-rw-r--r-- | kplato/kptnode.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kplato/kptnode.cc b/kplato/kptnode.cc index aaa770f0..1da218e6 100644 --- a/kplato/kptnode.cc +++ b/kplato/kptnode.cc @@ -34,19 +34,19 @@ namespace KPlato { -Node::Node(Node *tqparent) : m_nodes(), m_dependChildNodes(), m_dependParentNodes() { +Node::Node(Node *parent) : m_nodes(), m_dependChildNodes(), m_dependParentNodes() { //kdDebug()<<k_funcinfo<<"("<<this<<")"<<endl; - m_parent = tqparent; + m_parent = parent; init(); m_id = TQString(); // Not mapped } -Node::Node(Node &node, Node *tqparent) +Node::Node(Node &node, Node *parent) : m_nodes(), m_dependChildNodes(), m_dependParentNodes() { //kdDebug()<<k_funcinfo<<"("<<this<<")"<<endl; - m_parent = tqparent; + m_parent = parent; init(); m_name = node.name(); m_leader = node.leader(); @@ -113,7 +113,7 @@ Node *Node::projectNode() { if (m_parent) return m_parent->projectNode(); - kdError()<<k_funcinfo<<"Ooops, no tqparent and no project found"<<endl; + kdError()<<k_funcinfo<<"Ooops, no parent and no project found"<<endl; return 0; } @@ -313,7 +313,7 @@ bool Node::isParentOf(Node *node) { Relation *Node::findParentRelation(Node *node) { for (int i=0; i<numDependParentNodes(); i++) { Relation *rel = getDependParentNode(i); - if (rel->tqparent() == node) + if (rel->parent() == node) return rel; } return (Relation *)0; @@ -339,9 +339,9 @@ bool Node::isDependChildOf(Node *node) { //kdDebug()<<k_funcinfo<<" '"<<m_name<<"' checking against '"<<node->name()<<"'"<<endl; for (int i=0; i<numDependParentNodes(); i++) { Relation *rel = getDependParentNode(i); - if (rel->tqparent() == node) + if (rel->parent() == node) return true; - if (rel->tqparent()->isDependChildOf(node)) + if (rel->parent()->isDependChildOf(node)) return true; } return false; @@ -652,7 +652,7 @@ bool Node::addAppointment(Appointment *appointment, Schedule &main) { void Node::addAppointment(ResourceSchedule *resource, DateTime &start, DateTime &end, double load) { Schedule *node = findSchedule(resource->id()); if (node == 0) { - node = createSchedule(resource->tqparent()); + node = createSchedule(resource->parent()); } node->addAppointment(resource, start, end, load); } @@ -678,9 +678,9 @@ Schedule *Node::createSchedule(TQString name, Schedule::Type type, long id) { return sch; } -Schedule *Node::createSchedule(Schedule *tqparent) { +Schedule *Node::createSchedule(Schedule *parent) { //kdDebug()<<k_funcinfo<<name<<" type="<<type<<" id="<<(int)id<<endl; - NodeSchedule *sch = new NodeSchedule(tqparent, this); + NodeSchedule *sch = new NodeSchedule(parent, this); addSchedule(sch); return sch; } @@ -743,7 +743,7 @@ bool Node::calcCriticalPath(bool fromEnd) { } TQPtrListIterator<Relation> pit(m_dependParentNodes); for (; pit.current(); ++pit) { - if (pit.current()->tqparent()->calcCriticalPath(fromEnd)) { + if (pit.current()->parent()->calcCriticalPath(fromEnd)) { m_currentSchedule->inCriticalPath = true; } } |