treeModel = dynamic_cast<SUIT_AbstractModel*>( app->objectBrowser()->model() );
if ( treeModel )
- treeModel->setVisibilityState( aResObj->text( aResObj->customData( Qtx::IdType ).toInt() ), Qtx::HiddenState, false );
+ {
+ HYDROGUI_Module* aModule = dynamic_cast<HYDROGUI_Module*>( module() );
+ bool isVisible = aModule->isObjectVisible( -1, theModelObject );
+ Qtx::VisibilityState aVisState = isVisible ? Qtx::ShownState : Qtx::HiddenState;
+ treeModel->setVisibilityState( aResObj->text( aResObj->customData( Qtx::IdType ).toInt() ), aVisState, false );
+ }
}
if ( theIsBuildTree )
if( theObject.IsNull() )
return false;
+ if( theViewId < 0 )
+ {
+ //search in all
+ foreach( int aViewId, myObjectStateMap.keys() )
+ {
+ if( isObjectVisible( aViewId, theObject ) )
+ return true;
+ }
+ return false;
+ }
+
ViewId2Entry2ObjectStateMap::const_iterator anIter1 = myObjectStateMap.find( theViewId );
if( anIter1 != myObjectStateMap.end() )
{