mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-27 02:50:53 +00:00
When moving a widget, save the reference to the hierarchy lookup map...
This commit is contained in:
parent
fada6e7dcc
commit
59011fe726
1 changed files with 4 additions and 2 deletions
|
@ -279,13 +279,15 @@ namespace GUIEditor
|
||||||
|
|
||||||
// Remove reference to old item
|
// Remove reference to old item
|
||||||
widgetHierarchyMap.erase( oldid );
|
widgetHierarchyMap.erase( oldid );
|
||||||
|
|
||||||
// Add new item
|
// Add new item
|
||||||
item = new QTreeWidgetItem();
|
item = new QTreeWidgetItem();
|
||||||
item->setData( 0, Qt::DisplayRole, id );
|
item->setData( 0, Qt::DisplayRole, id );
|
||||||
item->setSelected( true );
|
item->setSelected( true );
|
||||||
newParent->addChild( item );
|
newParent->addChild( item );
|
||||||
|
|
||||||
|
// Add reference to new item
|
||||||
|
widgetHierarchyMap[ newid ] = item;
|
||||||
|
|
||||||
selectItem( item );
|
selectItem( item );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue