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

--HG--
branch : dfighter-tools
hg/feature/light_cycle
dfighter1985 10 years ago
parent 0055e2dd91
commit 22d9accae6

@ -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 );
}

Loading…
Cancel
Save