From cf66d1e24ad21c0ca7410d0b19f721c7415dd2cc Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Tue, 21 Nov 2017 22:36:36 -0800 Subject: navigation: qml: add State field to RouteAddress form Bug-AGL: SPEC-1068 Change-Id: I0936ccea829ac7ecc537e25cb6b4c64017191f11 Signed-off-by: Matt Ranostay --- app/forms/RouteAddress.qml | 3 +++ app/forms/RouteAddressForm.ui.qml | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/app/forms/RouteAddress.qml b/app/forms/RouteAddress.qml index e41277e..b8b8897 100644 --- a/app/forms/RouteAddress.qml +++ b/app/forms/RouteAddress.qml @@ -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 } diff --git a/app/forms/RouteAddressForm.ui.qml b/app/forms/RouteAddressForm.ui.qml index 5e43e7f..a0ace76 100644 --- a/app/forms/RouteAddressForm.ui.qml +++ b/app/forms/RouteAddressForm.ui.qml @@ -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") -- cgit 1.2.3-korg