summaryrefslogtreecommitdiffstats
path: root/kplato/kptrelation.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/kptrelation.cc')
-rw-r--r--kplato/kptrelation.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/kplato/kptrelation.cc b/kplato/kptrelation.cc
index 3814c51cd..e84b72a29 100644
--- a/kplato/kptrelation.cc
+++ b/kplato/kptrelation.cc
@@ -31,29 +31,29 @@
namespace KPlato
{
-Relation::Relation(Node *tqparent, Node *child, Type type, Duration lag) {
- m_parent=tqparent;
+Relation::Relation(Node *parent, Node *child, Type type, Duration lag) {
+ m_parent=parent;
m_child=child;
m_type=type;
m_lag=lag;
}
-Relation::Relation(Node *tqparent, Node *child, Type type) {
- m_parent=tqparent;
+Relation::Relation(Node *parent, Node *child, Type type) {
+ m_parent=parent;
m_child=child;
m_type=type;
m_lag=Duration();
}
Relation::Relation(Relation *rel) {
- m_parent=rel->tqparent();
+ m_parent=rel->parent();
m_child=rel->child();
m_type=rel->type();
m_lag=rel->lag();
}
Relation::~Relation() {
- //kdDebug()<<k_funcinfo<<"tqparent: "<<(m_parent ? m_parent->name():"none")<<" child: "<<(m_child ? m_child->name():"None")<<endl;
+ //kdDebug()<<k_funcinfo<<"parent: "<<(m_parent ? m_parent->name():"none")<<" child: "<<(m_child ? m_child->name():"None")<<endl;
if (m_parent)
m_parent->takeDependChildNode(this);
if (m_child)
@@ -66,7 +66,7 @@ void Relation::setType(Type type) {
bool Relation::load(TQDomElement &element, Project &project) {
- m_parent = project.findNode(element.attribute("tqparent-id"));
+ m_parent = project.findNode(element.attribute("parent-id"));
if (m_parent == 0) {
return false;
}
@@ -75,7 +75,7 @@ bool Relation::load(TQDomElement &element, Project &project) {
return false;
}
if (m_child == m_parent) {
- kdDebug()<<k_funcinfo<<"child == tqparent"<<endl;
+ kdDebug()<<k_funcinfo<<"child == parent"<<endl;
return false;
}
if (!m_parent->legalToLink(m_child))
@@ -94,16 +94,16 @@ bool Relation::load(TQDomElement &element, Project &project) {
m_lag = Duration::fromString(element.attribute("lag"));
if (!m_parent->addDependChildNode(this)) {
- kdError()<<k_funcinfo<<"Failed to add relation: Child="<<m_child->name()<<" tqparent="<<m_parent->name()<<endl;
+ kdError()<<k_funcinfo<<"Failed to add relation: Child="<<m_child->name()<<" parent="<<m_parent->name()<<endl;
return false;
}
if (!m_child->addDependParentNode(this)) {
m_parent->delDependChildNode(this, false/*do not delete*/);
- kdError()<<k_funcinfo<<"Failed to add relation: Child="<<m_child->name()<<" tqparent="<<m_parent->name()<<endl;
+ kdError()<<k_funcinfo<<"Failed to add relation: Child="<<m_child->name()<<" parent="<<m_parent->name()<<endl;
return false;
}
- //kdDebug()<<k_funcinfo<<"Added relation: Child="<<m_child->name()<<" tqparent="<<m_parent->name()<<endl;
+ //kdDebug()<<k_funcinfo<<"Added relation: Child="<<m_child->name()<<" parent="<<m_parent->name()<<endl;
return true;
}
@@ -112,7 +112,7 @@ void Relation::save(TQDomElement &element) const {
TQDomElement me = element.ownerDocument().createElement("relation");
element.appendChild(me);
- me.setAttribute("tqparent-id", m_parent->id());
+ me.setAttribute("parent-id", m_parent->id());
me.setAttribute("child-id", m_child->id());
TQString type = "Finish-Start";
switch (m_type) {