When moving a widget, save the reference to the hierarchy lookup map...

This commit is contained in:
dfighter1985 2014-09-27 20:54:44 +02:00
parent 89e86d2c7b
commit e3327c854b

View file

@ -279,13 +279,15 @@ namespace GUIEditor
// Remove reference to old item
widgetHierarchyMap.erase( oldid );
// Add new item
item = new QTreeWidgetItem();
item->setData( 0, Qt::DisplayRole, id );
item->setSelected( true );
newParent->addChild( item );
// Add reference to new item
widgetHierarchyMap[ newid ] = item;
selectItem( item );
}