]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
22888: EDF 10437 GEOM: Dimensions improvements akl/22888
authorakl <alexander.kovalev@opencascade.com>
Tue, 19 May 2015 08:13:43 +0000 (12:13 +0400)
committerakl <alexander.kovalev@opencascade.com>
Tue, 19 May 2015 08:13:43 +0000 (12:13 +0400)
src/LightApp/LightApp_Study.cxx
src/LightApp/LightApp_Study.h
src/SUIT/SUIT_DataBrowser.cxx
src/SUIT/SUIT_DataBrowser.h

index 469af3f37186741909049e3c332ad961225ec9ae..1229f127fa39856ccbc7aa2310b23fb168671c8f 100644 (file)
@@ -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<SUIT_AbstractModel*>( db->model() );
-  if ( treeModel )
+  if ( treeModel ) {
     treeModel->setVisibilityState( theEntry, theState );
+    emit objVisibilityChanged( theEntry, theState );
+  }
 }
 
 /*!
index d7d3272fff3a22769b5ac1d98f0cbc47a63853cb..d397a110afc341c0af3ee9483d81c27146129ed1 100644 (file)
@@ -136,6 +136,8 @@ signals:
   void                closed ( SUIT_Study* );
   void                created( SUIT_Study* );
 
+  void                objVisibilityChanged( QString, Qtx::VisibilityState );
+
 
 private:
   LightApp_Driver*    myDriver;
index 7267b75cf3172a30527ed0b66a0a520aa55d9b47..f2b6949bcf0c4caf2eaf3d0b3da270c69b0989ff 100644 (file)
@@ -155,6 +155,7 @@ void SUIT_DataBrowser::updateTree( SUIT_DataObject* obj, const bool autoOpen )
     if (myAutoSizeColumns)
       adjustColumnsWidth();
   }
+  emit updated();
 }
 
 /*!
index 8a26edc58c5b4898576f1359afc733837fd8d11a..031ec7cdb4823dab135bbc88346ce998086534b2 100644 (file)
@@ -83,6 +83,7 @@ signals:
   void             requestRename();
   void             clicked( SUIT_DataObject* );
   void             doubleClicked( SUIT_DataObject* );
+  void             updated();
 
 private slots:
   void             onModelUpdated();