navigation: qml: add State field to RouteAddress form 81/12081/1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 22 Nov 2017 06:36:36 +0000 (22:36 -0800)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 22 Nov 2017 07:12:08 +0000 (23:12 -0800)
Bug-AGL: SPEC-1068
Change-Id: I0936ccea829ac7ecc537e25cb6b4c64017191f11
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
app/forms/RouteAddress.qml
app/forms/RouteAddressForm.ui.qml

index e41277e..b8b8897 100644 (file)
@@ -55,6 +55,7 @@ RouteAddressForm {
         toAddress.country = toCountry.text
         toAddress.street = toStreet.text
         toAddress.city = toCity.text
+        toAddress.state = toState.text
         tempGeocodeModel.startCoordinate = fromCoordinate
         tempGeocodeModel.endCoordinate = QtPositioning.coordinate()
         tempGeocodeModel.query = fromCoordinate
@@ -65,6 +66,7 @@ RouteAddressForm {
     clearButton.onClicked: {
         toStreet.text = ""
         toCity.text = ""
+        toState.text = ""
         toCountry.text = ""
     }
 
@@ -75,6 +77,7 @@ RouteAddressForm {
     Component.onCompleted: {
         toStreet.text = toAddress.street
         toCity.text = toAddress.city
+        toState.text = toAddress.state
         toCountry.text = toAddress.country
     }
 
index 5e43e7f..a0ace76 100644 (file)
@@ -46,6 +46,7 @@ import QtQuick.Layouts 1.2
 Item {
     property alias toStreet: toStreet
     property alias toCity: toCity
+    property alias toState: toState
     property alias toCountry: toCountry
     property alias goButton: goButton
     property alias clearButton: clearButton
@@ -116,6 +117,16 @@ Item {
                 Layout.fillWidth: true
             }
 
+            Label {
+                id: label9
+                text: qsTr("State")
+            }
+
+            TextField {
+                id: toState
+                Layout.fillWidth: true
+            }
+
             Label {
                 id: label8
                 text: qsTr("Country")