diff options
Diffstat (limited to 'src/mechanics/mechanicsgroup.cpp')
| -rw-r--r-- | src/mechanics/mechanicsgroup.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mechanics/mechanicsgroup.cpp b/src/mechanics/mechanicsgroup.cpp index 8d27579..32f1748 100644 --- a/src/mechanics/mechanicsgroup.cpp +++ b/src/mechanics/mechanicsgroup.cpp @@ -31,12 +31,12 @@ bool MechanicsGroup::addItem( Item *item ) } // Check that the item's tqparent isn't already selected - Item *tqparent = item->tqparentItem(); + Item *tqparent = item->parentItem(); while (tqparent) { if ( m_itemList.tqcontains(tqparent) ) return false; - tqparent = tqparent->tqparentItem(); + tqparent = tqparent->parentItem(); } removeChildren(item); @@ -134,10 +134,10 @@ MechanicsItemList MechanicsGroup::toplevelMechItemList() const MechanicsItem* tqparent = *it; while (tqparent) { - if ( !tqparent->tqparentItem() && !toplevel.tqcontains(tqparent) ) + if ( !tqparent->parentItem() && !toplevel.tqcontains(tqparent) ) toplevel.append(tqparent); - tqparent = dynamic_cast<MechanicsItem*>(tqparent->tqparentItem()); + tqparent = dynamic_cast<MechanicsItem*>(tqparent->parentItem()); } } |
