From: sln Date: Tue, 16 Sep 2008 10:36:06 +0000 (+0000) Subject: setAlpha( 255 ); for drawing PE_FrameLineEdit in order to avoid transparent line... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bf6fb8876fc746f81f8ab71e70a39469d686e63f;p=modules%2Fgui.git setAlpha( 255 ); for drawing PE_FrameLineEdit in order to avoid transparent line edit above viewport (in QtxListBox for example) --- diff --git a/src/Style/Style_Salome.cxx b/src/Style/Style_Salome.cxx index 63568e4c5..d8b8c44c8 100644 --- a/src/Style/Style_Salome.cxx +++ b/src/Style/Style_Salome.cxx @@ -1612,8 +1612,10 @@ void Style_Salome::drawPrimitive( PrimitiveElement pe, const QStyleOption* opt, if ( hover ) drawHoverRect(p, opt->rect, opt->palette.color( QPalette::Window ), aRad, Style_Tools::All, true); else { + QColor light = opt->palette.color( QPalette::Base ); + light.setAlpha( 255 ); Style_Tools::shadowRect( p, opt->rect, aRad, LINE_GR_MARGIN, SHADOW, - Style_Tools::All, opt->palette.color( QPalette::Base ), // getColor( Style_Model::fld_light_clr ), + Style_Tools::All, light, // getColor( Style_Model::fld_light_clr ), getColor( Style_Model::fld_dark_clr ), aBrdTopCol, aBrdBotCol, getBoolValue( Style_Model::all_antialized ), false ); }