diff options
Diffstat (limited to 'umbrello/umbrello/codeoperation.cpp')
-rw-r--r-- | umbrello/umbrello/codeoperation.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/umbrello/umbrello/codeoperation.cpp b/umbrello/umbrello/codeoperation.cpp index 5c8228d5..3fa716dc 100644 --- a/umbrello/umbrello/codeoperation.cpp +++ b/umbrello/umbrello/codeoperation.cpp @@ -32,10 +32,10 @@ // Constructors/Destructors // -CodeOperation::CodeOperation ( ClassifierCodeDocument * doc , UMLOperation * tqparentOp, const TQString & body, const TQString & comment) - : CodeMethodBlock ( doc, tqparentOp, body, comment) +CodeOperation::CodeOperation ( ClassifierCodeDocument * doc , UMLOperation * parentOp, const TQString & body, const TQString & comment) + : CodeMethodBlock ( doc, parentOp, body, comment) { - init(tqparentOp); + init(parentOp); } CodeOperation::~CodeOperation ( ) { } @@ -133,7 +133,7 @@ void CodeOperation::setAttributesFromNode ( TQDomElement & element) // we simply need to record the tqparent operation here // m_parentOperation->disconnect(this); // always disconnect from current tqparent - TQString idStr = element.attribute("tqparent_id","-1"); + TQString idStr = element.attribute("parent_id","-1"); Uml::IDType id = STR2ID(idStr); UMLObject * obj = UMLApp::app()->getDocument()->findObjectById(id); UMLOperation * op = dynamic_cast<UMLOperation*>(obj); @@ -156,14 +156,14 @@ void CodeOperation::setAttributesFromObject(TextBlock * obj) } -void CodeOperation::init (UMLOperation * tqparentOp) +void CodeOperation::init (UMLOperation * parentOp) { m_canDelete = false; // we cant delete these with the codeeditor, delete the UML operation instead. - setTag(CodeOperation::findTag(tqparentOp)); + setTag(CodeOperation::findTag(parentOp)); // not needed.. done by tqparent "ownedcodeblock" class - // connect(tqparentOp,TQT_SIGNAL(modified()),this,TQT_SLOT(syncToParent())); + // connect(parentOp,TQT_SIGNAL(modified()),this,TQT_SLOT(syncToParent())); } |