X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI.cxx;h=254e7e4e2ba83058c85725eb7e1e10dbfd5e6743;hp=02c61acc264f95d9dac24ae30c77d86d153b4c59;hb=53e2da7a188ec607de03d71ce4242c3d6563ca85;hpb=e38e79d2e238fe5dbcfb26724e5fd60017e908f0 diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 02c61acc2..254e7e4e2 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -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( a ) ) - sa->UpdateScalarBar(); - } - } }