From 86726e988f878d3123128225bf36a4f25160bebc Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 18 Jul 2023 16:29:35 +0200 Subject: [PATCH] item statistics fixed --- src/common/QskObjectCounter.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/common/QskObjectCounter.cpp b/src/common/QskObjectCounter.cpp index d3618799..c26b80fd 100644 --- a/src/common/QskObjectCounter.cpp +++ b/src/common/QskObjectCounter.cpp @@ -12,6 +12,7 @@ QSK_QT_PRIVATE_BEGIN #include +#include QSK_QT_PRIVATE_END #define QSK_OBJECT_INFO 0 @@ -20,19 +21,8 @@ QSK_QT_PRIVATE_END #include #endif -#if QT_VERSION < QT_VERSION_CHECK( 6, 4, 0 ) - -QSK_QT_PRIVATE_BEGIN -#include -QSK_QT_PRIVATE_END - -#endif - static inline bool qskIsItem( const QObject* object ) { -#if QT_VERSION >= QT_VERSION_CHECK( 6, 4, 0 ) - return object->isQuickItemType(); -#else /* The addObject hook is called from the constructor of QObject, where we don't have the derived class constructed yet. @@ -42,7 +32,6 @@ static inline bool qskIsItem( const QObject* object ) auto o_p = QObjectPrivate::get( const_cast< QObject* >( object ) ); return dynamic_cast< QQuickItemPrivate* >( o_p ) != nullptr; -#endif } namespace