From 5acce3087879468af1a568b36508ad0ff754b8bb Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Fri, 7 Jan 2022 12:46:24 +0100 Subject: [PATCH] Qt 5.6 incompatibility fixed --- src/common/QskPlatform.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/common/QskPlatform.cpp b/src/common/QskPlatform.cpp index 1b4b7620..062c1064 100644 --- a/src/common/QskPlatform.cpp +++ b/src/common/QskPlatform.cpp @@ -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; }