Qt 5.6 incompatibility fixed
This commit is contained in:
parent
36001a6fec
commit
5acce30878
|
@ -50,11 +50,16 @@ const QPlatformIntegration* qskPlatformIntegration()
|
||||||
|
|
||||||
bool qskMaybeDesktopPlatform()
|
bool qskMaybeDesktopPlatform()
|
||||||
{
|
{
|
||||||
#if QT_CONFIG(cursor)
|
|
||||||
// this is what QC2 is doing for menus ?
|
// this is what QC2 is doing for menus ?
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK( 5, 15, 0 )
|
||||||
|
#if !QT_CONFIG(cursor)
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( const auto platform = QGuiApplicationPrivate::platformIntegration() )
|
if ( const auto platform = QGuiApplicationPrivate::platformIntegration() )
|
||||||
return platform->hasCapability( QPlatformIntegration::MultipleWindows );
|
return platform->hasCapability( QPlatformIntegration::MultipleWindows );
|
||||||
#endif
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue