From: sln Date: Tue, 9 Dec 2008 12:34:14 +0000 (+0000) Subject: 0013557: field values display X-Git-Tag: Phase8_Part1_16122008~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fbe251bb298e868b8e60bd5d8f34f263d120dbb3;p=modules%2Fsmesh.git 0013557: field values display All related controls for font definition in SMESH and VISU modules have been updated in accordance with changes on GUI_SRC level. QtxFontEdit class and related controls in preferences has been updated in order to support custom fonts instead of system fonts only. For example VTK viewer uses only three fonts Arial, Courier and Times. As result there is no point in providing control with system fonts for VTK viewer. Also "S" button has been added in QtxFontEdit in order to provide "Shadow" style of VTK font. "underline" property of QFont is replaced with "overline" property in order to store "Shadow" status of font to avoid conflict simultaneous usage of "U" and "S" button. --- diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index 9655756f5..8e35958a1 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -1598,7 +1598,7 @@ void SMESH_ActorDef::UpdateScalarBar() else aScalarBarTitleProp->ItalicOff(); - if ( f.underline() ) + if ( f.overline() ) aScalarBarTitleProp->ShadowOn(); else aScalarBarTitleProp->ShadowOff(); @@ -1633,7 +1633,7 @@ void SMESH_ActorDef::UpdateScalarBar() else aScalarBarLabelProp->ItalicOff(); - if( f.underline() ) + if( f.overline() ) aScalarBarLabelProp->ShadowOn(); else aScalarBarLabelProp->ShadowOff();