From 61053e4758f84b2221000abeed7ce6191fc8a344 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Tue, 21 Nov 2017 10:00:29 +0900 Subject: 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 --- .../qtquickcontrols2-agl-style/qtquickcontrols2-agl-style_git.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'recipes-demo-hmi/qtquickcontrols2-agl-style') 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 +} -- cgit 1.2.3-korg