diff options
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; } } |