summaryrefslogtreecommitdiff
path: root/src/widgets/styles/qwindowsxpstyle.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/qwindowsxpstyle.cpp
parentceb753626f694c8539c1155528886feb6dc18c80 (diff)
downloadqtbase-3f893e6fd90603c176e8c25f0b5278436fd1a0f4.tar.gz
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/qwindowsxpstyle.cpp')
-rw-r--r--src/widgets/styles/qwindowsxpstyle.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widgets/styles/qwindowsxpstyle.cpp b/src/widgets/styles/qwindowsxpstyle.cpp
index c1f7b599b3..ed5eca7318 100644
--- a/src/widgets/styles/qwindowsxpstyle.cpp
+++ b/src/widgets/styles/qwindowsxpstyle.cpp
@@ -2372,9 +2372,7 @@ void QWindowsXPStyle::drawControl(ControlElement element, const QStyleOption *op
bool verticalTitleBar = v2 == 0 ? false : v2->verticalTitleBar;
if (verticalTitleBar) {
- QSize s = rect.size();
- s.transpose();
- rect.setSize(s);
+ rect.setSize(rect.size().transposed());
p->translate(rect.left() - 1, rect.top() + rect.width());
p->rotate(-90);