From: Alan Alpert Date: Mon, 22 Apr 2013 22:35:28 +0000 (-0700) Subject: Elaborate on versioning docs X-Git-Tag: upstream/5.2.1~798^2~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d88f6f2345c2a2c7f93ebf73ac9a90edad0c9979;p=platform%2Fupstream%2Fqtdeclarative.git Elaborate on versioning docs Task-number: QTBUG-30808 Change-Id: I1930bd91a6c2089047ac7e7d74da2c977c522e07 Reviewed-by: Jerome Pasion --- diff --git a/src/qml/doc/src/qmllanguageref/modules/qmldir.qdoc b/src/qml/doc/src/qmllanguageref/modules/qmldir.qdoc index de3698c..405ba3f 100644 --- a/src/qml/doc/src/qmllanguageref/modules/qmldir.qdoc +++ b/src/qml/doc/src/qmllanguageref/modules/qmldir.qdoc @@ -223,6 +223,11 @@ cannot be used if an earlier version is imported. If the client had imported version 1.0 of the module, they can use the \c MyButton type but \b not the \c MyWindow type. +A version cannot be imported if no types have been explicitly exported for that +version. If a module provides a \c MyButton type in version 1.0 and a +\c MyWindow type in version 1.1, you cannot import version 1.2 or version 2.0 of +that module. + A type can be defined by different files in different versions. In this case, the most closely matching version will be used when imported by clients. For example, if a module had specified the following types via its \c qmldir