forked from qt-creator/qt-creator
QmlPuppet: Remove unused static function
Change-Id: I8c439f87c30b4b4102f0839cc745120568e6f34f Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user