Skip to content

Commit

Permalink
Fix build when QMacStyle is disabled.
Browse files Browse the repository at this point in the history
Change-Id: Ica66ab2b48266590b14d16a323b572f63168a580
Reviewed-by: Morten Johan Sørvig <[email protected]>
Reviewed-by: Tor Arne Vestbø <[email protected]>
  • Loading branch information
jakepetroules committed Feb 18, 2016
1 parent de82352 commit cf47e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/styles/qstyleoption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void QStyleOption::init(const QWidget *widget)
if (!(state & QStyle::State_Active) && !qt_mac_can_clickThrough(widget))
state &= ~QStyle::State_Enabled;
#endif
#if defined(Q_OS_MACX)
#if defined(Q_OS_OSX) && !defined(QT_NO_STYLE_MAC)
switch (QMacStyle::widgetSizePolicy(widget)) {
case QMacStyle::SizeSmall:
state |= QStyle::State_Small;
Expand Down

0 comments on commit cf47e2e

Please sign in to comment.