From: vsv Date: Thu, 25 Jul 2019 15:41:51 +0000 (+0300) Subject: Issue #2966: Provide update of viewer on text color preference changed X-Git-Tag: VEDF2019Lot4~90 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=02018d26c9d5f1f36661ac3c8b40182ab9f98d98;p=modules%2Fshaper.git Issue #2966: Provide update of viewer on text color preference changed --- diff --git a/src/SHAPERGUI/SHAPERGUI.cpp b/src/SHAPERGUI/SHAPERGUI.cpp index fa1c50aa1..3d3638025 100644 --- a/src/SHAPERGUI/SHAPERGUI.cpp +++ b/src/SHAPERGUI/SHAPERGUI.cpp @@ -820,7 +820,7 @@ void SHAPERGUI::createPreferences() pref->setItemProperty("min", 0, aItem); pref->setItemProperty("max", 100, aItem); - aItem = pref->addItem(tr("Text color"), colorScaleGroup, + aItem = aMgr.addPreference(tr("Text color"), colorScaleGroup, SUIT_PreferenceMgr::Color, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_text_color"); pref->retrieve();