From: ptv Date: Wed, 25 Oct 2006 08:40:47 +0000 (+0000) Subject: workaround for background color in table header (in case with Salome style) X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7d00d82db34a3bf40ce740d95f5b87895a5b4562;p=modules%2Fgui.git workaround for background color in table header (in case with Salome style) --- diff --git a/src/Qtx/QtxTable.cxx b/src/Qtx/QtxTable.cxx index abc36e607..768013761 100644 --- a/src/Qtx/QtxTable.cxx +++ b/src/Qtx/QtxTable.cxx @@ -584,7 +584,10 @@ bool QtxTable::StyleItem::drawPrimitive( QStyle::PrimitiveElement pe, QPainter* QColorGroup grp( cg ); QColor c = h->backgroundColor( section ); if ( c.isValid() ) + { grp.setColor( QColorGroup::Button, c ); + grp.setColor( QColorGroup::Light, c ); + } if ( style() ) style()->drawPrimitive( pe, p, r, grp, flags, opt );