Fusion Style: draw toolbar lines for non-widget apps.
Change-Id: If9415cfc05f80ba4e67d9ba6a8ebb1caaa738b84 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>bb10
parent
5147b1d410
commit
52cd53a03e
|
|
@ -1086,7 +1086,7 @@ void QFusionStyle::drawControl(ControlElement element, const QStyleOption *optio
|
|||
case CE_ToolBar:
|
||||
if (const QStyleOptionToolBar *toolBar = qstyleoption_cast<const QStyleOptionToolBar *>(option)) {
|
||||
// Reserve the beveled appearance only for mainwindow toolbars
|
||||
if (!(widget && qobject_cast<const QMainWindow*> (widget->parentWidget())))
|
||||
if (widget && !(qobject_cast<const QMainWindow*> (widget->parentWidget())))
|
||||
break;
|
||||
|
||||
// Draws the light line above and the dark line below menu bars and
|
||||
|
|
|
|||
Loading…
Reference in New Issue