mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-29 19:00:35 +05:00
Fix for bug IPAL10053.
This commit is contained in:
parent
fba89e60bc
commit
1b6700a4a5
@ -1582,7 +1582,7 @@ void SMESH_ActorDef::UpdateScalarBar()
|
|||||||
aScalarBarLabelProp->SetFontFamilyToArial();
|
aScalarBarLabelProp->SetFontFamilyToArial();
|
||||||
if( mgr->hasValue( "SMESH", "scalar_bar_label_font" ) )
|
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" )
|
if( f.family() == "Arial" )
|
||||||
aScalarBarLabelProp->SetFontFamilyToArial();
|
aScalarBarLabelProp->SetFontFamilyToArial();
|
||||||
else if( f.family() == "Courier" )
|
else if( f.family() == "Courier" )
|
||||||
|
@ -3047,9 +3047,9 @@ void SMESHGUI::createPreferences()
|
|||||||
int fontGr = addPreference( tr( "SMESH_FONT_SCALARBAR" ), sbarTab );
|
int fontGr = addPreference( tr( "SMESH_FONT_SCALARBAR" ), sbarTab );
|
||||||
|
|
||||||
int tfont = addPreference( tr( "SMESH_TITLE" ), fontGr, LightApp_Preferences::Font, "SMESH", "scalar_bar_title_font" );
|
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" );
|
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;
|
QStringList fam;
|
||||||
fam.append( tr( "SMESH_FONT_ARIAL" ) );
|
fam.append( tr( "SMESH_FONT_ARIAL" ) );
|
||||||
|
@ -3039,6 +3039,12 @@ msgstr "Elements"
|
|||||||
msgid "SMESHGUI::PREF_COLOR"
|
msgid "SMESHGUI::PREF_COLOR"
|
||||||
msgstr "Color"
|
msgstr "Color"
|
||||||
|
|
||||||
|
msgid "SMESHGUI::PREF_TITLE_COLOR"
|
||||||
|
msgstr "Title color"
|
||||||
|
|
||||||
|
msgid "SMESHGUI::PREF_LABELS_COLOR"
|
||||||
|
msgstr "Labels color"
|
||||||
|
|
||||||
msgid "SMESHGUI::PREF_SIZE"
|
msgid "SMESHGUI::PREF_SIZE"
|
||||||
msgstr "Size"
|
msgstr "Size"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user