diff options
Diffstat (limited to 'examples/quickcontrols/contactlist/contactlist.pro')
-rw-r--r-- | examples/quickcontrols/contactlist/contactlist.pro | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/examples/quickcontrols/contactlist/contactlist.pro b/examples/quickcontrols/contactlist/contactlist.pro index ceb99cbc47..2fead83186 100644 --- a/examples/quickcontrols/contactlist/contactlist.pro +++ b/examples/quickcontrols/contactlist/contactlist.pro @@ -2,6 +2,12 @@ TEMPLATE = app TARGET = contactlist QT += quick +CONFIG += qmltypes + +QML_IMPORT_PATH = $$pwd/. +QML_IMPORT_NAME = contactlist +QML_IMPORT_MAJOR_VERSION = 1 + HEADERS += \ contactmodel.h @@ -9,15 +15,20 @@ SOURCES += \ main.cpp \ contactmodel.cpp -RESOURCES += \ +qml_resources.files = \ + qmldir \ ContactDelegate.ui.qml \ ContactDialog.qml \ ContactForm.ui.qml \ - contactlist.qml \ + ContactList.qml \ ContactView.ui.qml \ designer/Backend/ContactModel.qml \ SectionDelegate.ui.qml +qml_resources.prefix = /qt/qml/contactlist + +RESOURCES += qml_resources + # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = $$PWD/designer |