diff options
author | Hannah von Reth <hannah.vonreth@kdab.com> | 2016-04-29 12:42:37 +0200 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@kdab.com> | 2016-06-06 13:12:14 +0000 |
commit | ca434d0c209c692441e775528e657a1ba9c4648d (patch) | |
tree | 4d0e83abbe14efe816877034ea335d4910f7fcd8 /src/widgets/styles/qfusionstyle.cpp | |
parent | 62091be85ccfc0d967c73b881d9134a75cb939c9 (diff) |
Enable testStyleOptionInit for all styles and fix affected styles.
Change-Id: I7cb759445342ecb58d5187ddd4a22e41fdea084a
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/widgets/styles/qfusionstyle.cpp')
-rw-r--r-- | src/widgets/styles/qfusionstyle.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp index 5978140f6c..e9e1f349c5 100644 --- a/src/widgets/styles/qfusionstyle.cpp +++ b/src/widgets/styles/qfusionstyle.cpp @@ -2385,8 +2385,7 @@ void QFusionStyle::drawComplexControl(ComplexControl control, const QStyleOption if (!titleBar->icon.isNull()) { titleBar->icon.paint(painter, iconRect); } else { - QStyleOption tool(0); - tool.palette = titleBar->palette; + QStyleOption tool = *titleBar; QPixmap pm = proxy()->standardIcon(SP_TitleBarMenuButton, &tool, widget).pixmap(16, 16); tool.rect = iconRect; painter->save(); |