summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qwindowsstyle.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-12-17 16:21:03 +0100
committerMarc Mutz <marc.mutz@kdab.com>2015-01-08 00:12:41 +0100
commit3f893e6fd90603c176e8c25f0b5278436fd1a0f4 (patch)
tree6f0b2e56bb5f8698ac206517347ccdde611f6f7e /src/widgets/styles/qwindowsstyle.cpp
parentceb753626f694c8539c1155528886feb6dc18c80 (diff)
QtWidgets: convert some users of QSize::transpose() to transposed()
...because transposed() is inline (and transpose() is not), and because it makes the code more readable and compact. Change-Id: I5661ee6251be638fb40c5c748aa50a89de6f7735 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets/styles/qwindowsstyle.cpp')
-rw-r--r--src/widgets/styles/qwindowsstyle.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widgets/styles/qwindowsstyle.cpp b/src/widgets/styles/qwindowsstyle.cpp
index 9deeb725f9..1336c04c42 100644
--- a/src/widgets/styles/qwindowsstyle.cpp
+++ b/src/widgets/styles/qwindowsstyle.cpp
@@ -1767,9 +1767,7 @@ void QWindowsStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPai
QRect r = rect;
if (verticalTitleBar) {
- QSize s = r.size();
- s.transpose();
- r.setSize(s);
+ r.setSize(r.size().transposed());
p->save();
p->translate(r.left(), r.top() + r.width());