summaryrefslogtreecommitdiffstats
path: root/src/item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/item.cpp b/src/item.cpp
index e5f7466..e2cd3b0 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -138,14 +138,14 @@ ItemData Item::itemData() const
itemData.x = x();
itemData.y = y();
- if ( !tqparentItem() )
+ if ( !parentItem() )
itemData.z = m_baseZ;
itemData.size = m_sizeRect;
itemData.setSize = canResize();
if (p_parentItem)
- itemData.tqparentId = p_parentItem->id();
+ itemData.parentId = p_parentItem->id();
const VariantDataMap::const_iterator end = m_variantData.end();
for ( VariantDataMap::const_iterator it = m_variantData.begin(); it != end; ++it )
@@ -212,9 +212,9 @@ void Item::restoreFromItemData( const ItemData &itemData )
if ( canResize() )
setSize( itemData.size );
- Item *tqparentItem = p_itemDocument->itemWithID( itemData.tqparentId );
- if (tqparentItem)
- setParentItem(tqparentItem);
+ Item *parentItem = p_itemDocument->itemWithID( itemData.parentId );
+ if (parentItem)
+ setParentItem(parentItem);
else
m_baseZ = itemData.z;