diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-12-17 16:21:03 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-01-08 00:12:41 +0100 |
commit | 3f893e6fd90603c176e8c25f0b5278436fd1a0f4 (patch) | |
tree | 6f0b2e56bb5f8698ac206517347ccdde611f6f7e /src/widgets/styles/qwindowsvistastyle.cpp | |
parent | ceb753626f694c8539c1155528886feb6dc18c80 (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/qwindowsvistastyle.cpp')
-rw-r--r-- | src/widgets/styles/qwindowsvistastyle.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widgets/styles/qwindowsvistastyle.cpp b/src/widgets/styles/qwindowsvistastyle.cpp index 42a85e8f64..57ad1fe02b 100644 --- a/src/widgets/styles/qwindowsvistastyle.cpp +++ b/src/widgets/styles/qwindowsvistastyle.cpp @@ -1382,9 +1382,7 @@ void QWindowsVistaStyle::drawControl(ControlElement element, const QStyleOption bool verticalTitleBar = v2 == 0 ? false : v2->verticalTitleBar; if (verticalTitleBar) { - QSize s = rect.size(); - s.transpose(); - rect.setSize(s); + rect.setSize(rect.size().transposed()); painter->translate(rect.left() - 1, rect.top() + rect.width()); painter->rotate(-90); |