summaryrefslogtreecommitdiffstats
path: root/examples/location/mapviewer/forms/Geocode.qml
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2016-12-20 12:50:35 +0100
committerMichal Klocek <michal.klocek@qt.io>2016-12-20 12:50:53 +0000
commitb3422d4a4460f19d34611f413bea77b332838139 (patch)
treeb83ff15f8717fcc46dc575a170713e63c9b6381a /examples/location/mapviewer/forms/Geocode.qml
parentba9b7b9ef674d93680070f6c4bb1053d0d2325dd (diff)
Do not use 'state' property in mapviewer
Using 'state' as property is considered bad practice and it can lead to undefined behavior. Change-Id: I3a77c4849a9e68334958216200d6c469b8f3d064 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'examples/location/mapviewer/forms/Geocode.qml')
-rw-r--r--examples/location/mapviewer/forms/Geocode.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/location/mapviewer/forms/Geocode.qml b/examples/location/mapviewer/forms/Geocode.qml
index 9e273257..475ca264 100644
--- a/examples/location/mapviewer/forms/Geocode.qml
+++ b/examples/location/mapviewer/forms/Geocode.qml
@@ -51,7 +51,7 @@ GeocodeForm {
// fill out the Address element
address.street = street.text
address.city = city.text
- address.state = state.text
+ address.state = stateName.text
address.country = country.text
address.postalCode = postalCode.text
showPlace(address)
@@ -60,7 +60,7 @@ GeocodeForm {
clearButton.onClicked: {
street.text = ""
city.text = ""
- state.text = ""
+ stateName.text = ""
country.text = ""
postalCode.text = ""
}
@@ -72,7 +72,7 @@ GeocodeForm {
Component.onCompleted: {
street.text = address.street
city.text = address.city
- state.text = address.state
+ stateName.text = address.state
country.text = address.country
postalCode.text = address.postalCode
}