~cibersheep/unav/systemcolors

« back to all changes in this revision

Viewing changes to qml/Main.qml

  • Committer: costales
  • Date: 2019-01-07 17:21:46 UTC
  • mfrom: (238.1.2 unav)
  • Revision ID: costales.marcos@gmail.com-20190107172146-x3c2f6q81iuf7fuo
Removed avoid tolls (no API for that).
Updated translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        width: unavWindow.width + units.gu(0.1) //TODO: Investigate why this is needed
62
62
        height: unavWindow.height + units.gu(0.1) //TODO: Investigate why this is needed
63
63
 
64
 
        property string applicationVersion: "2.2"
 
64
        property string applicationVersion: "2.3"
65
65
        property string mapUrl: "../nav/index.html"
66
66
        property string appUA: "Mozilla/5.0 (Linux; Android 5.0; Nexus 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.102 Mobile Safari/537.36 Project uNav"
67
67
 
73
73
            property int shareMap: 0
74
74
            property int unit: 0
75
75
            property int routingMode: 0 // 0 car, 1 walk, 2 bicycle, 3 bus
76
 
            property bool avoidTolls: false
77
76
            property bool alertRadars: false
78
77
            property bool legalRadarShow: true
79
78
            property string prevLat: ''
461
460
                            mainPageStack.executeJavaScript("settings.set_unit(\'" + ( navApp.settings.unit === 0 ? "km" : "mi" ) +"\')");
462
461
                            mainPageStack.executeJavaScript("ui.set_scale_unit(\'" + ( navApp.settings.unit === 0 ? "km" : "mi" ) +"\')");
463
462
                            mainPageStack.executeJavaScript("settings.set_routing_mode(" + navApp.settings.routingMode + ")");
464
 
                            mainPageStack.executeJavaScript("settings.set_avoid_tolls(" + navApp.settings.avoidTolls + ")");
465
463
                            mainPageStack.executeJavaScript("settings.set_alert_radars(" + navApp.settings.alertRadars + ")");
466
464
                            mainPageStack.executeJavaScript("settings.set_ui_speed(" + navApp.settings.uiShowSpeed + ")");
467
465
                            // Center map in last position