diff options
author | hjk <hjk@qt.io> | 2018-02-27 11:49:49 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-02-28 07:23:47 +0000 |
commit | 73c72fa6a765bcf24c7e44d2d3d45c02609ac21c (patch) | |
tree | aa9c43ee5bb39a04d6bf6e1bbbf24f6e05e5ec8d /share | |
parent | 9c091fedb183d15105c38766fa5525249102f043 (diff) |
QmlPuppet: Remove unused static function
Change-Id: I8c439f87c30b4b4102f0839cc745120568e6f34f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp b/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp index 35c56d02d2..2f3f4efeb3 100644 --- a/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp +++ b/share/qtcreator/qml/qmlpuppet/qmlprivategate/qmlprivategate_56.cpp @@ -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); |