#include <SUIT_Desktop.h>
#include <SUIT_Study.h>
#include <SUIT_ViewManager.h>
+#include <SUIT_ResourceMgr.h>
#include <SVTK_ViewManager.h>
#include <SVTK_ViewModel.h>
// the selection in the object browser.
// Note: processEvents() should be called after updateGV(),
// otherwise the application crashes from time to time.
- //RKV: qApp->processEvents();
+ //RKV: qApp->processEvents();
+ SUIT_ResourceMgr* aResMgr = getApp()->resourceMgr();
+ bool isResizeOnExpandItem = aResMgr->booleanValue( "ObjectBrowser", "resize_on_expand_item", false );
+ SUIT_DataBrowser* anObjectBrowser = getApp()->objectBrowser();
+ if ( isResizeOnExpandItem && anObjectBrowser ) {
+ anObjectBrowser->setResizeOnExpandItem( false ); // MZN: ISSUE #280
+ }
getApp()->updateObjectBrowser( true );
+ if ( isResizeOnExpandItem && anObjectBrowser ) {
+ anObjectBrowser->setResizeOnExpandItem( true ); // MZN: ISSUE #280
+ }
}
// Object browser is currently updated by using UF_Model flag