Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
Description
The attached archive contains a use-lineedit-version.qml file and a LineEdit module. When the use-lineedit-version.qml file is modified to import a version of the LineEdit later than that supplied by the module (for example, 1.2), the following error is correctly reported:
file:///home/dboddie/Resources/Training/svn/training/trunk/research/QtQuick/examples/declarative-uis/modules-components/versioned/use-lineedit-version.qml:2:1: module "LineEdit" version 1.2 is not installed
import LineEdit 1.2
^
When trying to import an earlier version that those supported by the module, a different error is reported:
file:///home/dboddie/Resources/Training/svn/training/trunk/research/QtQuick/examples/declarative-uis/modules-components/versioned/use-lineedit-version.qml:7:5: LineEdit is not a type
LineEdit {
^
This occurs when running qmlviewer with the -I option to specify the directory containing the qmldir file or when the LineEdit directory has been installed in the /usr/local/Trolltech/Qt-4.7.0/imports directory.
Is this a bug, or have I done something wrong with the qmldir file? I expected the same kind of error in both cases.