summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorParker Coates <coates@kde.org>2013-06-20 11:31:42 -0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-02 18:39:37 +0200
commit40894d28748e6f1299180652e4235eafb59ea102 (patch)
tree1115477155dcbb6c11cbb42cf3fb232b94548888
parent14721becc362b22aea393dcb92e336f0f9820f6f (diff)
Fix rotation of text in vertical QDockWidget titlebars in QFusionStyle.
Presumably this was just an omission when QFusionStyle was first written. These three lines were taken directly from the equivalent portion of QWindowsStyle and seem to work as expected. Task-number: QTBUG-31904 Change-Id: I2f288d3cf2bfa3fe4f7f4a71e2726a172ec8e1b3 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
-rw-r--r--src/widgets/styles/qfusionstyle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp
index 41046a1254..149a5c6674 100644
--- a/src/widgets/styles/qfusionstyle.cpp
+++ b/src/widgets/styles/qfusionstyle.cpp
@@ -1219,6 +1219,10 @@ void QFusionStyle::drawControl(ControlElement element, const QStyleOption *optio
- titleRect.bottom(),
r.top() + titleRect.left() - rect.left(),
titleRect.height(), titleRect.width());
+
+ painter->translate(r.left(), r.top() + r.width());
+ painter->rotate(-90);
+ painter->translate(-r.left(), -r.top());
}
if (!dwOpt->title.isEmpty()) {