diff options
author | Alan Alpert <416365416c@gmail.com> | 2013-05-17 15:32:19 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-20 01:09:05 +0200 |
commit | fee79b70773ef26c5d45993c4618d302392b0782 (patch) | |
tree | 89c5a0c07eb0c8504ecb1e77ef78b7899d10ed7a /src/qml/qml/qqml.h | |
parent | 8850e2eafaba8a6493d3ad5ab584b751eb9a8742 (diff) |
Add qmlProtectModule
A C++ analog to the protected qmldir syntax, this is also a potential
performance improvement because we can avoid some file system accesses.
Change-Id: I41781a6cc72aa65bd2d397800345ea16ef442e90
Reviewed-by: Antti Piira <apiira@blackberry.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqml.h')
-rw-r--r-- | src/qml/qml/qqml.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/qml/qqml.h b/src/qml/qml/qqml.h index ee69985edb..6082fcda08 100644 --- a/src/qml/qml/qqml.h +++ b/src/qml/qml/qqml.h @@ -441,6 +441,9 @@ using namespace QtQml; #pragma clang diagnostic pop #endif +//The C++ version of protected namespaces in qmldir +Q_QML_EXPORT bool qmlProtectModule(const char* uri, int majVersion); + template<typename T> QObject *qmlAttachedPropertiesObject(const QObject *obj, bool create = true) { |