summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2009-04-15 15:12:53 (GMT)
committerJens Bache-Wiig <jbache@trolltech.com>2009-04-15 15:14:09 (GMT)
commit897ef5d44556dcb1faa81594d713b62f246215cd (patch)
tree2c0da8c81cefd3f5c061ffb917381ac4511410ca /src
parentea45426ab6942d3deb736ee429ae7bc4ae8713e5 (diff)
downloadQt-897ef5d44556dcb1faa81594d713b62f246215cd.zip
Qt-897ef5d44556dcb1faa81594d713b62f246215cd.tar.gz
Qt-897ef5d44556dcb1faa81594d713b62f246215cd.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')
-rw-r--r--src/gui/styles/qgtkstyle.cpp2
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);