summaryrefslogtreecommitdiffstats
path: root/app/forms
diff options
context:
space:
mode:
Diffstat (limited to 'app/forms')
-rw-r--r--app/forms/RouteAddress.qml3
-rw-r--r--app/forms/RouteAddressForm.ui.qml11
2 files changed, 14 insertions, 0 deletions
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
@@ -117,6 +118,16 @@ Item {
}
Label {
+ id: label9
+ text: qsTr("State")
+ }
+
+ TextField {
+ id: toState
+ Layout.fillWidth: true
+ }
+
+ Label {
id: label8
text: qsTr("Country")
}