From 52cd53a03e919ee739885296fa4a23b94959aa89 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Thu, 21 Mar 2013 11:16:14 +0100 Subject: [PATCH] Fusion Style: draw toolbar lines for non-widget apps. Change-Id: If9415cfc05f80ba4e67d9ba6a8ebb1caaa738b84 Reviewed-by: Jens Bache-Wiig --- src/widgets/styles/qfusionstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp index 0ba9ec38c0..652d092652 100644 --- a/src/widgets/styles/qfusionstyle.cpp +++ b/src/widgets/styles/qfusionstyle.cpp @@ -1086,7 +1086,7 @@ void QFusionStyle::drawControl(ControlElement element, const QStyleOption *optio case CE_ToolBar: if (const QStyleOptionToolBar *toolBar = qstyleoption_cast(option)) { // Reserve the beveled appearance only for mainwindow toolbars - if (!(widget && qobject_cast (widget->parentWidget()))) + if (widget && !(qobject_cast (widget->parentWidget()))) break; // Draws the light line above and the dark line below menu bars and