diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2019-01-21 20:02:07 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2019-02-11 13:42:23 +0000 |
commit | a9f486c8836f545f04db8d2bbf83b1b2ee484678 (patch) | |
tree | 9a2063552b5f812b75f13f13730f8d19f6c9e92f /examples | |
parent | 2295c67accd2ac50374d2e90cc536feaf11ead4b (diff) | |
download | qtivi-a9f486c8836f545f04db8d2bbf83b1b2ee484678.tar.gz |
ivigenerator: Make use of the qml_type filter also for modules
The qml_type tries to read both annotations now, qml_name and qml_type
For modules the filter returns the module_name or the new name from
the annotation.
As before this can be used to register all types under a specific
QML uri.
The last section of the uri is now also used as the QML name for
the module singleton holding all enums and factory functions.
E.g. a module named "com.example.climate" will now make all its
enums available from the "Climate" object (Climate.AutoRecirculation)
Change-Id: I6481a34876d6c47bd8f34c946c7638e34cc857f1
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ivicore/qface-ivi-addressbook/demo/main.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ivicore/qface-ivi-addressbook/demo/main.qml b/examples/ivicore/qface-ivi-addressbook/demo/main.qml index cb057d7..2bb4950 100644 --- a/examples/ivicore/qface-ivi-addressbook/demo/main.qml +++ b/examples/ivicore/qface-ivi-addressbook/demo/main.qml @@ -91,7 +91,7 @@ Window { Button { Layout.fillWidth: true text: "New Contact" - onClicked: addressBook.insertContact(0, AddressBookModule.contact("Foo", "Bar", "12234")) + onClicked: addressBook.insertContact(0, AddressBook.contact("Foo", "Bar", "12234")) } } } |