summaryrefslogtreecommitdiff
path: root/src/qml/doc/snippets/code/backend/backend.pro
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-02-11 16:49:55 +0100
committerUlf Hermann <ulf.hermann@qt.io>2020-02-12 15:46:01 +0100
commitc70452a65af222343451f19ec62744314444c181 (patch)
tree10b5d1ed21b39deb82427ed12155920b7c643988 /src/qml/doc/snippets/code/backend/backend.pro
parentb9fcb1d4543fe19962b4cf8dcdb45c6c497e39d8 (diff)
downloadqtdeclarative-c70452a65af222343451f19ec62744314444c181.tar.gz
Doc: Modernize backend example and adapt C++ integration docs
We want people to use the static type registration. Change-Id: I98e51af9df1a2f73df10f82458a7b7f5c5e5aad1 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/qml/doc/snippets/code/backend/backend.pro')
-rw-r--r--src/qml/doc/snippets/code/backend/backend.pro17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/qml/doc/snippets/code/backend/backend.pro b/src/qml/doc/snippets/code/backend/backend.pro
new file mode 100644
index 0000000000..8bd2422718
--- /dev/null
+++ b/src/qml/doc/snippets/code/backend/backend.pro
@@ -0,0 +1,17 @@
+QT += qml
+
+#![registration]
+CONFIG += qmltypes
+QML_IMPORT_NAME = io.qt.examples.backend
+QML_IMPORT_MAJOR_VERSION = 1
+#![registration]
+
+HEADERS += \
+ backend.h
+
+SOURCES += \
+ backend.cpp \
+ main.cpp
+
+RESOURCES += \
+ main.qml