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
clearButton.onClicked: {
toStreet.text = ""
toCity.text = ""
+ toState.text = ""
toCountry.text = ""
}
Component.onCompleted: {
toStreet.text = toAddress.street
toCity.text = toAddress.city
+ toState.text = toAddress.state
toCountry.text = toAddress.country
}
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
Layout.fillWidth: true
}
+ Label {
+ id: label9
+ text: qsTr("State")
+ }
+
+ TextField {
+ id: toState
+ Layout.fillWidth: true
+ }
+
Label {
id: label8
text: qsTr("Country")