Fix macOS build for -no-widgets, take 2
Task-number: QTBUG-61780 Change-Id: Ic67074b19b3b5c409c0f1254be77ba122ad61a85 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
70b976ece1
commit
333a27a8b6
@ -132,7 +132,7 @@ bool QCocoaTheme::usePlatformNativeDialog(DialogType dialogType) const
|
|||||||
{
|
{
|
||||||
if (dialogType == QPlatformTheme::FileDialog)
|
if (dialogType == QPlatformTheme::FileDialog)
|
||||||
return true;
|
return true;
|
||||||
#if QT_CONFIG(colordialog)
|
#if defined(QT_WIDGETS_LIB) && QT_CONFIG(colordialog)
|
||||||
if (dialogType == QPlatformTheme::ColorDialog)
|
if (dialogType == QPlatformTheme::ColorDialog)
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
@ -150,7 +150,7 @@ QPlatformDialogHelper * QCocoaTheme::createPlatformDialogHelper(DialogType dialo
|
|||||||
case QPlatformTheme::FileDialog:
|
case QPlatformTheme::FileDialog:
|
||||||
return new QCocoaFileDialogHelper();
|
return new QCocoaFileDialogHelper();
|
||||||
#endif
|
#endif
|
||||||
#if QT_CONFIG(colordialog)
|
#if defined(QT_WIDGETS_LIB) && QT_CONFIG(colordialog)
|
||||||
case QPlatformTheme::ColorDialog:
|
case QPlatformTheme::ColorDialog:
|
||||||
return new QCocoaColorDialogHelper();
|
return new QCocoaColorDialogHelper();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user