Qt 5.6 incompatibility fixed

This commit is contained in:
Uwe Rathmann 2022-01-07 12:46:24 +01:00
parent 36001a6fec
commit 5acce30878

View File

@ -50,11 +50,16 @@ const QPlatformIntegration* qskPlatformIntegration()
bool qskMaybeDesktopPlatform()
{
#if QT_CONFIG(cursor)
// 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() )
return platform->hasCapability( QPlatformIntegration::MultipleWindows );
#endif
return false;
}