summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2009-12-02 14:31:09 (GMT)
committerYoann Lopes <yoann.lopes@nokia.com>2009-12-02 14:31:09 (GMT)
commitccde429536ba29dceb1576b6b981a812b0b846fc (patch)
tree3bdf0ab86eb7f9c074c9cf2dfb9b93a2b4e368df /src/gui/styles
parent25023911295c201758faaa2c800b2388ddf1e0b0 (diff)
downloadQt-ccde429536ba29dceb1576b6b981a812b0b846fc.zip
Qt-ccde429536ba29dceb1576b6b981a812b0b846fc.tar.gz
Qt-ccde429536ba29dceb1576b6b981a812b0b846fc.tar.bz2
Fixes transformation problems with QGraphicsProxyWidget.
In the paintEvent of the widget used in a QGraphicsProxyWidget, the worldMatrix was wrongly used by the painter instead of the deviceMatrix. Similar problem in the WindowsXP Style, the worldMatrix was used instead of the deviceMatrix for determining if the widget is transformed (reviewed by eblomfel). Task-number: QTBUG-5939 Reviewed-by: bnilsen Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qwindowsxpstyle.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/styles/qwindowsxpstyle.cpp b/src/gui/styles/qwindowsxpstyle.cpp
index fe7f5d7..0767083 100644
--- a/src/gui/styles/qwindowsxpstyle.cpp
+++ b/src/gui/styles/qwindowsxpstyle.cpp
@@ -623,8 +623,7 @@ void QWindowsXPStylePrivate::drawBackground(XPThemeData &themeData)
painter->save();
- QMatrix m = painter->matrix();
- bool complexXForm = m.m11() != 1.0 || m.m22() != 1.0 || m.m12() != 0.0 || m.m21() != 0.0;
+ bool complexXForm = painter->deviceTransform().type() > QTransform::TxTranslate;
bool translucentToplevel = false;
QPaintDevice *pdev = painter->device();