QmlPuppet: Remove unused static function

Change-Id: I8c439f87c30b4b4102f0839cc745120568e6f34f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
hjk
2018-02-27 11:49:49 +01:00
parent 9c091fedb1
commit 73c72fa6a7

View File

@@ -144,25 +144,6 @@ QVariant fixResourcePaths(const QVariant &value)
return value;
}
static void fixResourcePathsForObject(QObject *object)
{
if (qmlDesignerRCPath().isEmpty())
return;
PropertyNameList propertyNameList = propertyNameListForWritableProperties(object);
foreach (const PropertyName &propertyName, propertyNameList) {
QQmlProperty property(object, QString::fromUtf8(propertyName), QQmlEngine::contextForObject(object));
const QVariant value = property.read();
const QVariant fixedValue = fixResourcePaths(value);
if (value != fixedValue) {
property.write(fixedValue);
}
}
}
QObject *createComponent(const QUrl &componentUrl, QQmlContext *context)
{
return QQuickDesignerSupportItems::createComponent(componentUrl, context);