diff options
Diffstat (limited to 'src/itemdocumentdata.cpp')
-rw-r--r-- | src/itemdocumentdata.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/itemdocumentdata.cpp b/src/itemdocumentdata.cpp index a352b04..8981980 100644 --- a/src/itemdocumentdata.cpp +++ b/src/itemdocumentdata.cpp @@ -423,8 +423,8 @@ TQDomElement ItemDocumentData::itemDataToElement( TQDomDocument &doc, const Item node.setAttribute( "flip", itemData.flipped ); } - if ( !itemData.tqparentId.isEmpty() ) - node.setAttribute( "tqparent", itemData.tqparentId ); + if ( !itemData.parentId.isEmpty() ) + node.setAttribute( "tqparent", itemData.parentId ); const TQStringMap::const_iterator stringEnd = itemData.dataString.end(); for ( TQStringMap::const_iterator it = itemData.dataString.begin(); it != stringEnd; ++it ) @@ -528,7 +528,7 @@ void ItemDocumentData::elementToItemData( TQDomElement element ) itemData.angleDegrees = element.attribute( "angle", "0" ).toInt(); itemData.flipped = element.attribute( "flip", "0" ).toInt(); itemData.orientation = element.attribute( "orientation", "-1" ).toInt(); - itemData.tqparentId = element.attribute( "tqparent", TQString() ); + itemData.parentId = element.attribute( "tqparent", TQString() ); m_itemDataMap[id] = itemData; @@ -548,7 +548,7 @@ void ItemDocumentData::elementToItemData( TQDomElement element ) elementToItemData(childElement); TQString childId = childElement.attribute( "id", TQString() ); if ( !childId.isNull() ) - m_itemDataMap[childId].tqparentId = id; + m_itemDataMap[childId].parentId = id; } else if ( tagName == "data" ) @@ -826,7 +826,7 @@ void ItemDocumentData::generateUniqueIDs( ItemDocument *itemDocument ) const ItemDataMap::iterator end = newItemDataMap.end(); for ( ItemDataMap::iterator it = newItemDataMap.begin(); it != end; ++it ) { - it.data().tqparentId = replaced[it.data().tqparentId]; + it.data().parentId = replaced[it.data().parentId]; } } { @@ -1000,7 +1000,7 @@ void ItemDocumentData::mergeWithDocument( ItemDocument *itemDocument, bool selec } if (item) { - //HACK We move the item now before restoreFromItemData is called later, in case it is to be tqparented + //HACK We move the item now before restoreFromItemData is called later, in case it is to be parented //(as we don't want to move tqchildren)... item->move( it.data().x, it.data().y ); } |