forked from qt-creator/qt-creator
QmlPuppet: Fix warning about unused static function
Change-Id: I3a7fbc18a8fe6b208600996bfa45202389009a18 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user