diff options
Diffstat (limited to 'umbrello/umbrello/entity.cpp')
-rw-r--r-- | umbrello/umbrello/entity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/umbrello/umbrello/entity.cpp b/umbrello/umbrello/entity.cpp index 38c73138..31ef1513 100644 --- a/umbrello/umbrello/entity.cpp +++ b/umbrello/umbrello/entity.cpp @@ -107,7 +107,7 @@ UMLObject* UMLEntity::addEntityAttribute(const TQString& name, Uml::IDType id) { bool UMLEntity::addEntityAttribute(UMLEntityAttribute* attribute, IDChangeLog* Log /* = 0*/) { TQString name = (TQString)attribute->getName(); if (findChildObject(name) == NULL) { - attribute->tqparent()->removeChild(attribute); + attribute->parent()->removeChild(attribute); this->insertChild(attribute); m_List.append(attribute); emit entityAttributeAdded(attribute); @@ -124,7 +124,7 @@ bool UMLEntity::addEntityAttribute(UMLEntityAttribute* attribute, IDChangeLog* L bool UMLEntity::addEntityAttribute(UMLEntityAttribute* attribute, int position) { TQString name = (TQString)attribute->getName(); if (findChildObject(name) == NULL) { - attribute->tqparent()->removeChild(attribute); + attribute->parent()->removeChild(attribute); this->insertChild(attribute); if ( position >= 0 && position <= (int)m_List.count() ) { m_List.insert(position,attribute); |