Fix compilation after API change in QtDeclarative

Change-Id: Ibaeaa4b089a508b1cb44b5f90921675b49b3beb3
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Janne Koskinen
2022-02-04 13:51:27 +02:00
parent dd70101d7b
commit 53ed379314

View File

@@ -556,7 +556,12 @@ bool isSubclassOf(QObject *object, const QByteArray &superTypeName)
void getPropertyCache(QObject *object, QQmlEngine *engine) void getPropertyCache(QObject *object, QQmlEngine *engine)
{ {
#if QT_VERSION < QT_VERSION_CHECK(6, 4, 0)
QQuickDesignerSupportProperties::getPropertyCache(object, engine); QQuickDesignerSupportProperties::getPropertyCache(object, engine);
#else
Q_UNUSED(engine);
QQuickDesignerSupportProperties::getPropertyCache(object);
#endif
} }
void registerNotifyPropertyChangeCallBack(void (*callback)(QObject *, const PropertyName &)) void registerNotifyPropertyChangeCallBack(void (*callback)(QObject *, const PropertyName &))