aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2017-11-21 10:00:29 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-11-22 13:25:45 +0000
commit61053e4758f84b2221000abeed7ce6191fc8a344 (patch)
treeefcc86b649e9e63e18635e102b74f5a3ec3f4c2f
parentc9fe976adc3688cf7c4e38f740bd88b03ace2f34 (diff)
Set Qt Quick Controls 2 default style
We have set Qt Quick Controls 2's style in each application's main.cpp QQuickStyle::setStyle("AGL"); This patch set the style globally with an environment variable as this style is provided by the platform. https://doc.qt.io/qt-5/qtquickcontrols2-styles.html#environment-variable Change-Id: I5a8ee91cac8ad665ba0f7f22ffd79cab3a50f9a2 Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
-rw-r--r--recipes-demo-hmi/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style_git.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-demo-hmi/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style_git.bb b/recipes-demo-hmi/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style_git.bb
index a0af21a61..f4e55c178 100644
--- a/recipes-demo-hmi/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style_git.bb
+++ b/recipes-demo-hmi/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style_git.bb
@@ -21,3 +21,8 @@ RDEPENDS_${PN} += " \
qtquickcontrols2-qmlplugins \
qtsvg-plugins \
"
+
+do_install_append_class-target() {
+ install -d ${D}/${sysconfdir}/afm/unit.env.d
+ echo "QT_QUICK_CONTROLS_STYLE=AGL" > ${D}${sysconfdir}/afm/unit.env.d/qtquickcontrols2-style
+}