diff options
author | Tim Jenssen <tim.jenssen@digia.com> | 2014-08-28 16:51:00 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2014-08-28 16:52:02 +0200 |
commit | e64b6245a91a9d2bd269452c772c7c6eea784b39 (patch) | |
tree | 7991c4cbfc7a0b702fef6b8a3e9cb362a2b9ce8b /src/imports | |
parent | 26fb6a0915ec64d30eaa78e781e7f18468bc2ed7 (diff) |
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 <Thomas.Hartmann@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/models/qmldir | 1 | ||||
-rw-r--r-- | src/imports/qtquick2/qmldir | 1 | ||||
-rw-r--r-- | src/imports/window/qmldir | 1 | ||||
-rw-r--r-- | src/imports/xmllistmodel/qmldir | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/src/imports/models/qmldir b/src/imports/models/qmldir index 4afbe5de33..2dd20b923e 100644 --- a/src/imports/models/qmldir +++ b/src/imports/models/qmldir @@ -1,3 +1,4 @@ module QtQml.Models plugin modelsplugin classname QtQmlModelsPlugin +designersupported diff --git a/src/imports/qtquick2/qmldir b/src/imports/qtquick2/qmldir index 4a79c82e76..8167e813df 100644 --- a/src/imports/qtquick2/qmldir +++ b/src/imports/qtquick2/qmldir @@ -2,3 +2,4 @@ module QtQuick plugin qtquick2plugin classname QtQuick2Plugin typeinfo plugins.qmltypes +designersupported diff --git a/src/imports/window/qmldir b/src/imports/window/qmldir index c9d1e5ace3..fb6202b3bb 100644 --- a/src/imports/window/qmldir +++ b/src/imports/window/qmldir @@ -2,3 +2,4 @@ module QtQuick.Window plugin windowplugin classname QtQuick2WindowPlugin typeinfo plugins.qmltypes +designersupported diff --git a/src/imports/xmllistmodel/qmldir b/src/imports/xmllistmodel/qmldir index d6c10c5c2a..1f17dbb112 100644 --- a/src/imports/xmllistmodel/qmldir +++ b/src/imports/xmllistmodel/qmldir @@ -2,3 +2,4 @@ module QtQuick.XmlListModel plugin qmlxmllistmodelplugin classname QmlXmlListModelPlugin typeinfo plugins.qmltypes +designersupported |