Salome HOME
preferences of scalar bar is used only when scalar bar actor is created, but user...
[modules/smesh.git] / src / SMESHGUI / SMESHGUI.cxx
index 02c61acc264f95d9dac24ae30c77d86d153b4c59..254e7e4e2ba83058c85725eb7e1e10dbfd5e6743 100644 (file)
@@ -3303,29 +3303,4 @@ void SMESHGUI::createPreferences()
 
 void SMESHGUI::preferencesChanged( const QString& sect, const QString& name )
 {
-  if( sect=="SMESH" )
-  {
-    if( name=="scalar_bar_num_colors" || name=="scalar_bar_num_labels" || name=="scalar_bar_orientation" ||
-        name=="scalar_bar_vertical_x" || name=="scalar_bar_vertical_y" || name=="scalar_bar_vertical_width" ||
-        name=="scalar_bar_vertical_height" || name=="scalar_bar_horizontal_x" || name=="scalar_bar_horizontal_y" ||
-        name=="scalar_bar_horizontal_width" || name=="scalar_bar_horizontal_height" )
-    {
-      SVTK_ViewWindow* wnd = SMESH::GetViewWindow( this );
-      if( !wnd )
-        return;
-
-      vtkRenderer* r = wnd->getRenderer();
-      if( !r )
-        return;
-
-      vtkActorCollection* actors = r->GetActors();
-      if( !actors )
-        return;
-
-      actors->InitTraversal();
-      while( vtkActor* a = actors->GetNextActor() )
-        if( SMESH_Actor* sa = dynamic_cast<SMESH_Actor*>( a ) )
-          sa->UpdateScalarBar();
-    }
-  }
 }