summaryrefslogtreecommitdiff
path: root/src/hmi/qml/NavigationApp.qml
diff options
context:
space:
mode:
authorasanoaozora <fifitaneki@hotmail.com>2017-05-15 17:43:56 +0200
committerasanoaozora <fifitaneki@hotmail.com>2017-05-15 17:43:56 +0200
commite83514318a467283935f899b827648d33f69e923 (patch)
tree7358b067cf3beef05e508b7482d3c4eded2688d9 /src/hmi/qml/NavigationApp.qml
parentdd793749ccce49456df5ed1e0381e736bb664164 (diff)
downloadnavigation-e83514318a467283935f899b827648d33f69e923.tar.gz
refine qml app launcher
Diffstat (limited to 'src/hmi/qml/NavigationApp.qml')
-rw-r--r--src/hmi/qml/NavigationApp.qml10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/hmi/qml/NavigationApp.qml b/src/hmi/qml/NavigationApp.qml
index dac51a9..81c991d 100644
--- a/src/hmi/qml/NavigationApp.qml
+++ b/src/hmi/qml/NavigationApp.qml
@@ -56,14 +56,6 @@ ApplicationWindow {
id:dbusIf;
}
- function initScale()
- {
- var res=Genivi.mapviewer_GetScaleList(dbusIf);
- Genivi.scaleList=res[1];
- Genivi.minZoomId=Genivi.scaleList[1][1];
- Genivi.maxZoomId=Genivi.scaleList[Genivi.scaleList.length-1][1];
- }
-
Component.onCompleted: {
//set persistent data
Genivi.setlang("eng","USA","Latn"); //set to english US
@@ -75,7 +67,7 @@ ApplicationWindow {
//launch the map viewer and init the scale list
Genivi.mapviewer_handle(dbusIf,width,height,Genivi.MAPVIEWER_MAIN_MAP);
- initScale();
+ Genivi.initScale(dbusIf);
//set verbose mode on
Genivi.setVerbose();