From 7d00d82db34a3bf40ce740d95f5b87895a5b4562 Mon Sep 17 00:00:00 2001 From: ptv Date: Wed, 25 Oct 2006 08:40:47 +0000 Subject: [PATCH] workaround for background color in table header (in case with Salome style) --- src/Qtx/QtxTable.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 ); -- 2.39.2