summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qwindowsmobilestyle.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-11-03 21:44:33 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-02-13 18:18:53 +0000
commit26dca142a75e71baad26583cd467d07e3b116e59 (patch)
tree56c2700ea699e78caa42f20e14310d09a1844e54 /src/widgets/styles/qwindowsmobilestyle.cpp
parent8ce34c2e8163cff56048acc761d1337889e09c6f (diff)
QtWidgets: use new QRect::transposed()
Change-Id: Idfed0ae6b80e301fd32206b2e6d68054460b76de Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/widgets/styles/qwindowsmobilestyle.cpp')
-rw-r--r--src/widgets/styles/qwindowsmobilestyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/styles/qwindowsmobilestyle.cpp b/src/widgets/styles/qwindowsmobilestyle.cpp
index 93da8d42f0..45323d1d15 100644
--- a/src/widgets/styles/qwindowsmobilestyle.cpp
+++ b/src/widgets/styles/qwindowsmobilestyle.cpp
@@ -5690,7 +5690,7 @@ void QWindowsMobileStyle::drawControl(ControlElement element, const QStyleOption
QRect r = rect;
if (verticalTitleBar) {
- r.setSize(r.size().transposed());
+ r = r.transposed();
painter->save();
painter->translate(r.left(), r.top() + r.width());