qmldir parser: add support for "depends component version" syntax
authorShawn Rutledge <shawn.rutledge@digia.com>
Wed, 24 Sep 2014 15:36:53 +0000 (17:36 +0200)
committerShawn Rutledge <shawn.rutledge@digia.com>
Wed, 1 Oct 2014 12:40:46 +0000 (14:40 +0200)
commit564c1038d1645d76004ad93651aa392d71d45490
tree6724a918810f91dda0c4f5f5a8de11d655de950f
parent64e2fa80015fb7d9e53cc66357870d4ea11f3590
qmldir parser: add support for "depends component version" syntax

Dependency declarations are initially for the benefit of
qmlimportscanner which does not (yet) use this parser.  This patch
adds support for dependencies into the qmldir parser for completeness,
along with autotests.  It is necessary to prevent errors at runtime
when parsing a qmldir which contains the "depends" declaration.

Task-number: QTBUG-41489
Change-Id: Ief2524a30140c42874f94f1735755b171e15dcf7
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/qml/qml/qqmldirparser.cpp
src/qml/qml/qqmldirparser_p.h
tests/auto/qml/qqmldirparser/data/dependency/qmldir [new file with mode: 0644]
tests/auto/qml/qqmldirparser/tst_qqmldirparser.cpp