From e64b6245a91a9d2bd269452c772c7c6eea784b39 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Thu, 28 Aug 2014 16:51:00 +0200 Subject: Add new property "designersupported" to qmldir This patch adds a property called "designersupported" to qmldir. This allows the Qt Quick Designer to only load plugins that have the line ""designersupported"" in their qmldir file. So the designer can load sub components without risking to load plugins that have never been tested in the designer and that might crash. The check for "designersupported"" is activated by using QQmlImports::setDesignerSupportRequired(). Change-Id: I4bf07cc163faa47996eacb1365a7961c51c51060 Reviewed-by: Thomas Hartmann Reviewed-by: Tim Jenssen --- src/qml/qml/qqmltypeloader_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml/qml/qqmltypeloader_p.h') diff --git a/src/qml/qml/qqmltypeloader_p.h b/src/qml/qml/qqmltypeloader_p.h index 3d3ad28091..9f98e4fd40 100644 --- a/src/qml/qml/qqmltypeloader_p.h +++ b/src/qml/qml/qqmltypeloader_p.h @@ -320,6 +320,8 @@ public: QString pluginLocation() const; + bool designerSupported() const; + private: QQmlDirParser m_parser; QString m_location; -- cgit v1.2.3