forked from qt-creator/qt-creator
qmlpuppet: adjust to api changes in Qt 6.2
Change-Id: I3c9139cacb7ff9eb7b8138e0a7f589280a24c13a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -71,9 +71,7 @@ public:
|
||||
PropertyNameList propertyNameListForWritableProperties(QObject *object,
|
||||
const PropertyName &baseName = PropertyName(),
|
||||
QObjectList *inspectedObjects = nullptr);
|
||||
PropertyNameList allPropertyNames(QObject *object,
|
||||
const PropertyName &baseName = PropertyName(),
|
||||
QObjectList *inspectedObjects = nullptr);
|
||||
PropertyNameList allPropertyNames(QObject *object);
|
||||
bool hasFullImplementedListInterface(const QQmlListReference &list);
|
||||
|
||||
void registerCustomData(QObject *object);
|
||||
|
@@ -68,8 +68,8 @@ static void addToPropertyNameListIfNotBlackListed(
|
||||
}
|
||||
|
||||
PropertyNameList allPropertyNamesInline(QObject *object,
|
||||
const PropertyName &baseName,
|
||||
QObjectList *inspectedObjects,
|
||||
const PropertyName &baseName = {},
|
||||
QObjectList *inspectedObjects = nullptr,
|
||||
int depth = 0)
|
||||
{
|
||||
QQuickDesignerSupport::PropertyNameList propertyNameList;
|
||||
@@ -136,24 +136,20 @@ PropertyNameList allPropertyNamesInline(QObject *object,
|
||||
}
|
||||
#endif
|
||||
|
||||
PropertyNameList allPropertyNames(QObject *object,
|
||||
const PropertyName &baseName,
|
||||
QObjectList *inspectedObjects)
|
||||
PropertyNameList allPropertyNames(QObject *object)
|
||||
{
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
return QQuickDesignerSupportProperties::allPropertyNames(object, baseName, inspectedObjects);
|
||||
return QQuickDesignerSupportProperties::allPropertyNames(object);
|
||||
#elif QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||
return allPropertyNamesInline(object, baseName, inspectedObjects);
|
||||
return allPropertyNamesInline(object);
|
||||
#else
|
||||
return QQuickDesignerSupportProperties::allPropertyNames(object, baseName, inspectedObjects);
|
||||
return QQuickDesignerSupportProperties::allPropertyNames(object);
|
||||
#endif
|
||||
}
|
||||
|
||||
PropertyNameList propertyNameListForWritableProperties(QObject *object,
|
||||
const PropertyName &baseName,
|
||||
QObjectList *inspectedObjects)
|
||||
PropertyNameList propertyNameListForWritableProperties(QObject *object)
|
||||
{
|
||||
return QQuickDesignerSupportProperties::propertyNameListForWritableProperties(object, baseName, inspectedObjects);
|
||||
return QQuickDesignerSupportProperties::propertyNameListForWritableProperties(object);
|
||||
}
|
||||
|
||||
void tweakObjects(QObject *object)
|
||||
|
Reference in New Issue
Block a user