From: akl Date: Tue, 19 May 2015 08:13:43 +0000 (+0400) Subject: 22888: EDF 10437 GEOM: Dimensions improvements X-Git-Tag: V7_7_0a1~44 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6526766a4bc7ed73f35e444c08fac1d37ae3574f;p=modules%2Fgui.git 22888: EDF 10437 GEOM: Dimensions improvements --- diff --git a/src/LightApp/LightApp_Study.cxx b/src/LightApp/LightApp_Study.cxx index 469af3f37..1229f127f 100644 --- a/src/LightApp/LightApp_Study.cxx +++ b/src/LightApp/LightApp_Study.cxx @@ -695,8 +695,10 @@ void LightApp_Study::setVisibilityState( const QString& theEntry, Qtx::Visibilit SUIT_DataBrowser* db = app->objectBrowser(); if ( !db ) return; SUIT_AbstractModel* treeModel = dynamic_cast( db->model() ); - if ( treeModel ) + if ( treeModel ) { treeModel->setVisibilityState( theEntry, theState ); + emit objVisibilityChanged( theEntry, theState ); + } } /*! diff --git a/src/LightApp/LightApp_Study.h b/src/LightApp/LightApp_Study.h index d7d3272ff..d397a110a 100644 --- a/src/LightApp/LightApp_Study.h +++ b/src/LightApp/LightApp_Study.h @@ -136,6 +136,8 @@ signals: void closed ( SUIT_Study* ); void created( SUIT_Study* ); + void objVisibilityChanged( QString, Qtx::VisibilityState ); + private: LightApp_Driver* myDriver; diff --git a/src/SUIT/SUIT_DataBrowser.cxx b/src/SUIT/SUIT_DataBrowser.cxx index 7267b75cf..f2b6949bc 100644 --- a/src/SUIT/SUIT_DataBrowser.cxx +++ b/src/SUIT/SUIT_DataBrowser.cxx @@ -155,6 +155,7 @@ void SUIT_DataBrowser::updateTree( SUIT_DataObject* obj, const bool autoOpen ) if (myAutoSizeColumns) adjustColumnsWidth(); } + emit updated(); } /*! diff --git a/src/SUIT/SUIT_DataBrowser.h b/src/SUIT/SUIT_DataBrowser.h index 8a26edc58..031ec7cdb 100644 --- a/src/SUIT/SUIT_DataBrowser.h +++ b/src/SUIT/SUIT_DataBrowser.h @@ -83,6 +83,7 @@ signals: void requestRename(); void clicked( SUIT_DataObject* ); void doubleClicked( SUIT_DataObject* ); + void updated(); private slots: void onModelUpdated();