summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2017-12-20 00:20:03 +0900
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2017-12-20 00:20:03 +0900
commiteca53c7d70f510f08d226177b14baab893802861 (patch)
treeb4363dfe5ece8f5c274c74c4ef59a4a44a98f2dc
parentd946204ad1a4ba754131652e30d4cfacae89028b (diff)
Revert "Remove setting Qt Quick Controsl 2 style"
NOTE: I18N features isn't supported in EEL/CES2018 yet. This reverts commit 2f43c64c0b55dbfc7ffa1d87e952d840c7f940e1. Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
-rw-r--r--app/app.pro3
-rw-r--r--app/main.cpp3
2 files changed, 5 insertions, 1 deletions
diff --git a/app/app.pro b/app/app.pro
index 169258b..1aa4da0 100644
--- a/app/app.pro
+++ b/app/app.pro
@@ -1,5 +1,6 @@
TARGET = dashboard
-QT = quick
+QT = quickcontrols2
+
HEADERS += \
translator.h
diff --git a/app/main.cpp b/app/main.cpp
index 7adc1f0..d7f15b5 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -21,6 +21,7 @@
#include <QtQml/QQmlContext>
#include <QtQml/QQmlApplicationEngine>
#include <QtQuick/QQuickWindow>
+#include <QtQuickControls2/QQuickStyle>
#include "translator.h"
@@ -37,6 +38,8 @@ int main(int argc, char *argv[])
app.setOrganizationDomain(QStringLiteral("automotivelinux.org"));
app.setOrganizationName(QStringLiteral("AutomotiveGradeLinux"));
+ QQuickStyle::setStyle("AGL");
+
QCommandLineParser parser;
parser.addPositionalArgument("port", app.translate("main", "port for binding"));
parser.addPositionalArgument("secret", app.translate("main", "secret for binding"));