Fix for bug IPAL10053.

This commit is contained in:
mzn 2006-07-28 09:51:49 +00:00
parent fba89e60bc
commit 1b6700a4a5
3 changed files with 9 additions and 3 deletions

View File

@ -1582,7 +1582,7 @@ void SMESH_ActorDef::UpdateScalarBar()
aScalarBarLabelProp->SetFontFamilyToArial();
if( mgr->hasValue( "SMESH", "scalar_bar_label_font" ) )
{
QFont f = mgr->stringValue( "SMESH", "scalar_bar_label_font" );
QFont f = mgr->fontValue( "SMESH", "scalar_bar_label_font" );
if( f.family() == "Arial" )
aScalarBarLabelProp->SetFontFamilyToArial();
else if( f.family() == "Courier" )

View File

@ -3047,9 +3047,9 @@ void SMESHGUI::createPreferences()
int fontGr = addPreference( tr( "SMESH_FONT_SCALARBAR" ), sbarTab );
int tfont = addPreference( tr( "SMESH_TITLE" ), fontGr, LightApp_Preferences::Font, "SMESH", "scalar_bar_title_font" );
addPreference( tr( "SMESH_TITLE" ), fontGr, LightApp_Preferences::Color, "SMESH", "scalar_bar_title_color" );
addPreference( tr( "PREF_TITLE_COLOR" ), fontGr, LightApp_Preferences::Color, "SMESH", "scalar_bar_title_color" );
int lfont = addPreference( tr( "SMESH_LABELS" ), fontGr, LightApp_Preferences::Font, "SMESH", "scalar_bar_label_font" );
addPreference( tr( "SMESH_LABELS" ), fontGr, LightApp_Preferences::Color, "SMESH", "scalar_bar_label_color" );
addPreference( tr( "PREF_LABELS_COLOR" ), fontGr, LightApp_Preferences::Color, "SMESH", "scalar_bar_label_color" );
QStringList fam;
fam.append( tr( "SMESH_FONT_ARIAL" ) );

View File

@ -3039,6 +3039,12 @@ msgstr "Elements"
msgid "SMESHGUI::PREF_COLOR"
msgstr "Color"
msgid "SMESHGUI::PREF_TITLE_COLOR"
msgstr "Title color"
msgid "SMESHGUI::PREF_LABELS_COLOR"
msgstr "Labels color"
msgid "SMESHGUI::PREF_SIZE"
msgstr "Size"