diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-07-23 06:22:35 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-07-23 06:22:35 (GMT) |
commit | 7fe100b56ccca40de193164d3ce19600cf50bdd4 (patch) | |
tree | 9563d91fe63af272dee0dd18be42e6159de48cf0 /doc/src/declarative/extending.qdoc | |
parent | fff9aec87509bdcf3c662889b5119f97d32332e5 (diff) | |
download | Qt-7fe100b56ccca40de193164d3ce19600cf50bdd4.zip Qt-7fe100b56ccca40de193164d3ce19600cf50bdd4.tar.gz Qt-7fe100b56ccca40de193164d3ce19600cf50bdd4.tar.bz2 |
Doc and example fixes for library qualification (QT-558)
Diffstat (limited to 'doc/src/declarative/extending.qdoc')
-rw-r--r-- | doc/src/declarative/extending.qdoc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/src/declarative/extending.qdoc b/doc/src/declarative/extending.qdoc index ac3dc41..88abfe6 100644 --- a/doc/src/declarative/extending.qdoc +++ b/doc/src/declarative/extending.qdoc @@ -71,11 +71,12 @@ Custom C++ types are made available to QML using these two macros: \quotation \code #define QML_DECLARE_TYPE(T) -#define QML_DEFINE_TYPE(T,QmlName) +#define QML_DEFINE_TYPE(URI,VMAJ,VFROM,VTO,QmlName,T) \endcode Register the C++ type \a T with the QML system, and make it available in QML -under the name \a QmlName. \a T and \a QmlName may be the same. +under the name \a QmlName in library URI version VMAJ.VFROM to VMAJ.VTO. +\a T and \a QmlName may be the same. Generally the QML_DECLARE_TYPE() macro should be included immediately following the type declaration (usually in its header file), and the QML_DEFINE_TYPE() |