summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2009-10-22 09:00:25 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2009-10-22 09:00:25 (GMT)
commitadc8f1b1e7a91c3807b074a43c18d2b0e31c9a9d (patch)
tree9ed4dc7f2de6144d03cee4f328531263650f02a8
parent5f8978a02bde7f84dc48b63d3722b925730790f0 (diff)
downloadQt-adc8f1b1e7a91c3807b074a43c18d2b0e31c9a9d.zip
Qt-adc8f1b1e7a91c3807b074a43c18d2b0e31c9a9d.tar.gz
Qt-adc8f1b1e7a91c3807b074a43c18d2b0e31c9a9d.tar.bz2
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
-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 f04a4b2..886301b 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: