mirror of https://github.com/qt/qtbase.git
Fix build when QMacStyle is disabled.
Change-Id: Ica66ab2b48266590b14d16a323b572f63168a580 Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
This commit is contained in:
parent
de82352d28
commit
cf47e2e181
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue