From bf6fb8876fc746f81f8ab71e70a39469d686e63f Mon Sep 17 00:00:00 2001 From: sln Date: Tue, 16 Sep 2008 10:36:06 +0000 Subject: [PATCH] setAlpha( 255 ); for drawing PE_FrameLineEdit in order to avoid transparent line edit above viewport (in QtxListBox for example) --- src/Style/Style_Salome.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); } -- 2.39.2