summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/entity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/entity.cpp')
-rw-r--r--umbrello/umbrello/entity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/umbrello/umbrello/entity.cpp b/umbrello/umbrello/entity.cpp
index 31ef1513..38c73138 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->parent()->removeChild(attribute);
+ attribute->tqparent()->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->parent()->removeChild(attribute);
+ attribute->tqparent()->removeChild(attribute);
this->insertChild(attribute);
if ( position >= 0 && position <= (int)m_List.count() ) {
m_List.insert(position,attribute);