summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/qtcluster/qtcluster-base.pro
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2017-06-20 17:25:47 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2017-06-21 05:51:52 +0000
commit4b98aa3e37e460eda6cfb7b78a374422870ce0c1 (patch)
treedd39abc1c3d9416ba99d0dd4ed134a4ad6c8b33b /doc/src/snippets/qtcluster/qtcluster-base.pro
parente70bc6d3f052d3f0343f38964a33f6805bc354a8 (diff)
Add Qt Cluster Demo
This a a demo of s simple digital instrument cluster. The demo comes with two skins. By default the demo will use the so called hybrid skin. If the argument "sports" is provided the application will use the sports skin instead. To be able to preview the custom components in the Qt Quick Designer the option: Tools > Options > Qt Quick > Qt Quick Designer > Use QML emulation layer which is built by the selected has to be enabled in Qt Creator. Change-Id: I7d06220062e1fffd6c6849c962bd4f6592d051de Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'doc/src/snippets/qtcluster/qtcluster-base.pro')
-rw-r--r--doc/src/snippets/qtcluster/qtcluster-base.pro109
1 files changed, 109 insertions, 0 deletions
diff --git a/doc/src/snippets/qtcluster/qtcluster-base.pro b/doc/src/snippets/qtcluster/qtcluster-base.pro
new file mode 100644
index 000000000..69f914e57
--- /dev/null
+++ b/doc/src/snippets/qtcluster/qtcluster-base.pro
@@ -0,0 +1,109 @@
+TEMPLATE = app
+TARGET = qtcluster
+INCLUDEPATH += .
+QT += quick
+
+# Enable for static version
+#CONFIG += static
+#DEFINES += STATIC
+
+CONFIG += SPORTS_CAR
+CONFIG += HYBRID_CAR
+
+#Enable compile flags based on config flags
+SPORTS_CAR: DEFINES += SPORTS_CAR
+HYBRID_CAR: DEFINES += HYBRID_CAR
+
+qtHaveModule(3drender) {
+QT += 3dcore 3drender 3dquick 3dquick-private
+HEADERS += \
+ scenehelper.h
+SOURCES += \
+ scenehelper.cpp
+}
+
+CONFIG += resources_big
+
+SOURCES += \
+ main.cpp \
+ gauge.cpp \
+ gaugenode.cpp \
+ qtiviclusterdata.cpp \
+ etcprovider.cpp \
+ circularindicator.cpp
+
+DEFINES += NO_NETWORK
+
+RESOURCES += \
+ qtcluster.qrc \
+
+RESOURCES += images.qrc
+
+SPORTS_CAR: {
+ RESOURCES += sportsqml.qrc
+
+ RESOURCES += sportscar_15k.qrc
+ RESOURCES += sportsimages.qrc
+}
+
+HYBRID_CAR: {
+ RESOURCES += \
+ hybridqml.qrc
+
+RESOURCES += hybridimages.qrc
+}
+
+RESOURCES += iso-icons.qrc
+
+ISO_ICONS = \
+ iso_grs_7000_4_0083 \
+ iso_grs_7000_4_1434A \
+ iso_grs_7000_4_0246 \
+ iso_grs_7000_4_0245 \
+ iso_grs_7000_4_0247 \
+ iso_grs_7000_4_1555 \
+ iso_grs_7000_4_1702 \
+ iso_grs_7000_4_0249 \
+ iso_grs_7000_4_0238 \
+ iso_grs_7000_4_0456
+
+
+OTHER_FILES += \
+ qml/* \
+ qml/dash_sports/* \
+ qml/dash_hybrid/* \
+ qml/dash_hybrid/gauges/* \
+ qml/dash_safety/* \
+
+#win32 | win64: {
+# deploy.path = $$OUT_PWD
+#} else {
+ deploy.path = /data/user/qt
+#}
+
+#message($$deploy.path)
+
+#qml_data.files += qml/*
+#qml_data.path = $$deploy.path/$$TARGET/qml
+#font_data.files += fonts/*
+#font_data.path = $$deploy.path/$$TARGET/fonts
+#image_data.files += images/*
+#image_data.path = $$deploy.path/$$TARGET/images
+target.path = $$deploy.path/$$TARGET
+INSTALLS += \
+ target \
+# video_data \
+# qml_data \
+# font_data \
+# image_data
+
+HEADERS += \
+ gauge.h \
+ gaugenode.h \
+ qtiviclusterdata.h \
+ etcprovider.h \
+ circularindicator.h
+
+macos: QMAKE_INFO_PLIST = Info-macos.plist
+ios|tvos: QMAKE_INFO_PLIST = Info-ios.plist
+