mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 09:06:19 +00:00
Don't add non-selectable widgets to the hierarchy tree.
--HG-- branch : dfighter-tools
This commit is contained in:
parent
923b36f0e5
commit
fd5a1a6834
1 changed files with 6 additions and 0 deletions
|
@ -166,6 +166,9 @@ namespace GUIEditor
|
|||
std::vector< CCtrlBase* >::const_iterator citr;
|
||||
for( citr = controls.begin(); citr != controls.end(); ++citr )
|
||||
{
|
||||
if( !(*citr)->isEditorSelectable() )
|
||||
continue;
|
||||
|
||||
QTreeWidgetItem *subItem = new QTreeWidgetItem( item );
|
||||
subItem->setText( 0, makeNodeName( (*citr)->getId() ).c_str() );
|
||||
widgetHierarchyMap[ (*citr)->getId() ] = subItem;
|
||||
|
@ -176,6 +179,9 @@ namespace GUIEditor
|
|||
std::vector< CViewBase* >::const_iterator vitr;
|
||||
for( vitr = views.begin(); vitr != views.end(); ++vitr )
|
||||
{
|
||||
if( !(*vitr)->isEditorSelectable() )
|
||||
continue;
|
||||
|
||||
QTreeWidgetItem *subItem = new QTreeWidgetItem( item );
|
||||
subItem->setText( 0, makeNodeName( (*vitr)->getId() ).c_str() );
|
||||
widgetHierarchyMap[ (*vitr)->getId() ] = subItem;
|
||||
|
|
Loading…
Reference in a new issue