From 70cc744ba23cbc012e5c7644f9447a5799615bea Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Mon, 6 Jan 2025 09:34:29 +0100 Subject: [PATCH] focusPolicy reoved for Qt >= 6.7 --- src/controls/QskItemPrivate.cpp | 2 ++ src/controls/QskItemPrivate.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/controls/QskItemPrivate.cpp b/src/controls/QskItemPrivate.cpp index 5ff79737..514bf512 100644 --- a/src/controls/QskItemPrivate.cpp +++ b/src/controls/QskItemPrivate.cpp @@ -23,7 +23,9 @@ QskItemPrivate::QskItemPrivate() , clearPreviousNodes( false ) , initiallyPainted( false ) , wheelEnabled( false ) +#if QT_VERSION < QT_VERSION_CHECK( 6, 7, 0 ) , focusPolicy( Qt::NoFocus ) +#endif { if ( updateFlags & QskItem::DeferredLayout ) { diff --git a/src/controls/QskItemPrivate.h b/src/controls/QskItemPrivate.h index f7a8d29e..b210d4e3 100644 --- a/src/controls/QskItemPrivate.h +++ b/src/controls/QskItemPrivate.h @@ -61,7 +61,9 @@ class QskItemPrivate : public QQuickItemPrivate bool initiallyPainted : 1; bool wheelEnabled : 1; +#if QT_VERSION < QT_VERSION_CHECK( 6, 7, 0 ) uint focusPolicy : 4; +#endif }; #endif