diff options
Diffstat (limited to 'umbrello/umbrello/enum.cpp')
-rw-r--r-- | umbrello/umbrello/enum.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/umbrello/umbrello/enum.cpp b/umbrello/umbrello/enum.cpp index 93ee1bdd..491817e2 100644 --- a/umbrello/umbrello/enum.cpp +++ b/umbrello/umbrello/enum.cpp @@ -109,7 +109,7 @@ UMLObject* UMLEnum::addEnumLiteral(const TQString &name, Uml::IDType id) { bool UMLEnum::addEnumLiteral(UMLEnumLiteral* literal, IDChangeLog* Log /* = 0*/) { TQString name = (TQString)literal->getName(); if (findChildObject(name) == NULL) { - literal->parent()->removeChild(literal); + literal->tqparent()->removeChild(literal); this->insertChild(literal); m_List.append(literal); UMLObject::emitModified(); @@ -126,7 +126,7 @@ bool UMLEnum::addEnumLiteral(UMLEnumLiteral* literal, IDChangeLog* Log /* = 0*/) bool UMLEnum::addEnumLiteral(UMLEnumLiteral* literal, int position) { TQString name = (TQString)literal->getName(); if (findChildObject(name) == NULL) { - literal->parent()->removeChild(literal); + literal->tqparent()->removeChild(literal); this->insertChild(literal); if ( position >= 0 && position <= (int)m_List.count() ) { m_List.insert(position,literal); |