Commit 7adb56af authored by Tobias Hunger's avatar Tobias Hunger
Browse files

QmlPuppet: Fix warning about unused static function



Change-Id: I3a7fbc18a8fe6b208600996bfa45202389009a18
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 83cea95b
......@@ -72,24 +72,6 @@ PropertyNameList propertyNameListForWritableProperties(QObject *object,
return QQuickDesignerSupportProperties::propertyNameListForWritableProperties(object, baseName, inspectedObjects);
}
static void fixResourcePathsForObject(QObject *object)
{
if (qgetenv("QMLDESIGNER_RC_PATHS").isEmpty())
return;
PropertyNameList propertyNameList = propertyNameListForWritableProperties(object);
foreach (const PropertyName &propertyName, propertyNameList) {
QQmlProperty property(object, propertyName, QQmlEngine::contextForObject(object));
const QVariant value = property.read();
const QVariant fixedValue = fixResourcePaths(value);
if (value != fixedValue) {
property.write(fixedValue);
}
}
}
void tweakObjects(QObject *object)
{
QQuickDesignerSupportItems::tweakObjects(object);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment