summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2009-10-22 11:00:25 +0200
committerJoerg Bornemann <joerg.bornemann@nokia.com>2009-10-22 11:00:25 +0200
commitadc8f1b1e7a91c3807b074a43c18d2b0e31c9a9d (patch)
tree9ed4dc7f2de6144d03cee4f328531263650f02a8 /src
parent5f8978a02bde7f84dc48b63d3722b925730790f0 (diff)
QWindowsMobileStyle::drawPrimitive(PE_Frame) background color fixed
The background color of PE_Frame was palette().light() and has been changed to use palette().background() now. This fixes the autotest tst_QStyleSheetStyle::task188195_baseBackground for Windows mobile. Reviewed-by: thartman
Diffstat (limited to 'src')
-rw-r--r--src/gui/styles/qwindowsmobilestyle.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/styles/qwindowsmobilestyle.cpp b/src/gui/styles/qwindowsmobilestyle.cpp
index f04a4b284a..886301b495 100644
--- a/src/gui/styles/qwindowsmobilestyle.cpp
+++ b/src/gui/styles/qwindowsmobilestyle.cpp
@@ -1460,10 +1460,8 @@ void QWindowsMobileStyle::drawPrimitive(PrimitiveElement element, const QStyleOp
painter->drawLines(a);
break; }
case PE_Frame:
- if (d->doubleControls)
- qDrawPlainRect(painter, option->rect, option->palette.shadow().color(),2,&option->palette.light());
- else
- qDrawPlainRect(painter, option->rect, option->palette.shadow().color(),1,&option->palette.light());
+ qDrawPlainRect(painter, option->rect, option->palette.shadow().color(),
+ d->doubleControls ? 2 : 1, &option->palette.background());
break;
case PE_FrameLineEdit:
case PE_FrameMenu: