Force Home display at startup
Signed-off-by: Philippe Lelong <lelong.ph@meltemus.com>
animation2.running = true;
}
animation2.running = true;
}
- function showSign90(show) {
+ function showSign90(show, lang) {
+ if(show) {
+ if(lang === 'fr')
+ sign90.source = './images/B14-90.png'
+ else
+ sign90.source = './images/B14-60.png'
+ }
}
function showVisa(show, num) {
}
function showVisa(show, num) {
}
}
Component.onCompleted: {
}
}
Component.onCompleted: {
appLauncherAreaLauncher.visible = true
applicationArea.visible = false
layoutHandler.hideAppLayer()
appLauncherAreaLauncher.visible = true
applicationArea.visible = false
layoutHandler.hideAppLayer()
<file>HMI_AppLauncher_Radio_Inactive-01.png</file>
<file>HMI_AppLauncher_Settings_Active-01.png</file>
<file>HMI_AppLauncher_Settings_Inactive-01.png</file>
<file>HMI_AppLauncher_Radio_Inactive-01.png</file>
<file>HMI_AppLauncher_Settings_Active-01.png</file>
<file>HMI_AppLauncher_Settings_Inactive-01.png</file>
- <file>B14-90.png</file>
<file>visa.png</file>
<file>french_flag.png</file>
<file>us_flag.png</file>
<file>visa.png</file>
<file>french_flag.png</file>
<file>us_flag.png</file>
<file>Open Trunk.png</file>
<file>Install App.png</file>
<file>View Online.png</file>
<file>Open Trunk.png</file>
<file>Install App.png</file>
<file>View Online.png</file>
+ <file>B14-60.png</file>
+ <file>B14-90.png</file>
QMetaObject::invokeMethod(home, "languageChanged");
QMetaObject::invokeMethod(shortcutArea, "languageChanged", Q_ARG(QVariant, user.graphPreferredLanguage));
QMetaObject::invokeMethod(statusArea, "languageChanged", Q_ARG(QVariant, user.graphPreferredLanguage));
QMetaObject::invokeMethod(home, "languageChanged");
QMetaObject::invokeMethod(shortcutArea, "languageChanged", Q_ARG(QVariant, user.graphPreferredLanguage));
QMetaObject::invokeMethod(statusArea, "languageChanged", Q_ARG(QVariant, user.graphPreferredLanguage));
- QMetaObject::invokeMethod(home, "showSign90", Q_ARG(QVariant, !user.graphActions.contains("Exceed 100 Kph")));
+ QMetaObject::invokeMethod(home, "showSign90", Q_ARG(QVariant, !user.graphActions.contains("Exceed 100 Kph")), Q_ARG(QVariant, user.graphPreferredLanguage));
QStringList t;
foreach(const QString &s, user.graphActions) {
if(!s.contains("Exceed"))
QStringList t;
foreach(const QString &s, user.graphActions) {
if(!s.contains("Exceed"))
}
void UserManagement::processTextMessage(QString message)
{
}
void UserManagement::processTextMessage(QString message)
{
- QString clientDetails_1 = "{\"postal_address\":\"201 Mission Street\",\"loc\":\"37.7914374,-122.3950694\",\"graphActions\":\"Install App,Update Software,Exceed 100 Kph,Open Trunk,View Online\""
+ QString clientDetails_1 = "{\"postal_address\":\"201 Mission Street\",\"loc\":\"37.7914374,-122.3950694\",\"graphActions\":\"Install App,Update Software,Open Trunk,View Online\""
",\"country\":\"USA\",\"mail\":\"bjensen@example.com\",\"city\":\"San Francisco\",\"graphEmail\":"
"\"bjensen@example.com\",\"graphPreferredLanguage\":\"en\",\"ccNumberMasked\":\"-111\",\"ccExpYear\""
":\"19\",\"ccExpMonth\":\"01\",\"description\":\"Original description\",\"groups\":[],\"last_name\":\""
",\"country\":\"USA\",\"mail\":\"bjensen@example.com\",\"city\":\"San Francisco\",\"graphEmail\":"
"\"bjensen@example.com\",\"graphPreferredLanguage\":\"en\",\"ccNumberMasked\":\"-111\",\"ccExpYear\""
":\"19\",\"ccExpMonth\":\"01\",\"description\":\"Original description\",\"groups\":[],\"last_name\":\""
#ifndef USERMANAGEMENT_H
#define USERMANAGEMENT_H
#ifndef USERMANAGEMENT_H
#define USERMANAGEMENT_H
-//#define REAL_SERVER "ws://localhost:1212/api?token=hello"
+#define REAL_SERVER "ws://localhost:1212/api?token=hello"
#include <QObject>
#include "applicationmodel.h"
#include <QObject>
#include "applicationmodel.h"