diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-04-15 15:12:53 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-04-15 16:14:21 (GMT) |
commit | 48042622b4ad184917216041db40f443b4a6ee52 (patch) | |
tree | d8f58921a1a4793829dab604bd91663925974711 /src/gui/styles | |
parent | 4378554647e3ab56cb9bceda9ceae962aab8e639 (diff) | |
download | Qt-48042622b4ad184917216041db40f443b4a6ee52.zip Qt-48042622b4ad184917216041db40f443b4a6ee52.tar.gz Qt-48042622b4ad184917216041db40f443b4a6ee52.tar.bz2 |
GTK: Fix line edit background color with custom brush
We should allways use the brush and not the color if possible.
Task-number: 240842
Reviewed-by: nrc
Diffstat (limited to 'src/gui/styles')
-rw-r--r-- | src/gui/styles/qgtkstyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qgtkstyle.cpp b/src/gui/styles/qgtkstyle.cpp index 541415f..b7fa575 100644 --- a/src/gui/styles/qgtkstyle.cpp +++ b/src/gui/styles/qgtkstyle.cpp @@ -977,7 +977,7 @@ void QGtkStyle::drawPrimitive(PrimitiveElement element, if (widget && widget->testAttribute(Qt::WA_SetPalette) && resolve_mask & (1 << QPalette::Base)) // Palette overridden by user - painter->fillRect(textRect, option->palette.base().color()); + painter->fillRect(textRect, option->palette.base()); else gtkPainter.paintFlatBox( gtkEntry, "entry_bg", textRect, option->state & State_Enabled ? GTK_STATE_NORMAL : GTK_STATE_INSENSITIVE, GTK_SHADOW_NONE, gtkEntry->style); |