Skip to content

Commit

Permalink
focusPolicy reoved for Qt >= 6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Jan 6, 2025
1 parent 57162cd commit 70cc744
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controls/QskItemPrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down
2 changes: 2 additions & 0 deletions src/controls/QskItemPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 70cc744

Please sign in to comment.