summaryrefslogtreecommitdiffstats
path: root/examples/positioning/weatherinfo/WeatherInfo.qml
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@qt.io>2023-02-08 13:56:39 +0200
committerJuha Vuolle <juha.vuolle@qt.io>2023-02-08 15:34:09 +0200
commita1d15a8c7175480e1ea354296b47588279d6ec7e (patch)
tree022fa6429506df4b17c5948e0be507f2b28e1e2d /examples/positioning/weatherinfo/WeatherInfo.qml
parent0520c7458a232d9a4ee58b18d6b1ae28dcfde9e0 (diff)
Address one qmllint warning in weatherinfo example
According to PropertyChanges documentation using the id is preferred, and using the "target" is (mostly) for Qt 5 compatibility. Amends: 2fa47f02d793252f38d26256586a2bc1a8bca67e Pick-to: 6.5 Change-Id: I6ba4dd21c43f5ec2952fe32d4eee609dd935a567 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'examples/positioning/weatherinfo/WeatherInfo.qml')
-rw-r--r--examples/positioning/weatherinfo/WeatherInfo.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/positioning/weatherinfo/WeatherInfo.qml b/examples/positioning/weatherinfo/WeatherInfo.qml
index 71b103c3..e1001739 100644
--- a/examples/positioning/weatherinfo/WeatherInfo.qml
+++ b/examples/positioning/weatherinfo/WeatherInfo.qml
@@ -19,13 +19,13 @@ Window {
states: [
State {
name: "loading"
- PropertyChanges { target: main; opacity: 0 }
- PropertyChanges { target: wait; opacity: 1 }
+ PropertyChanges { main.opacity: 0 }
+ PropertyChanges { wait.opacity: 1 }
},
State {
name: "ready"
- PropertyChanges { target: main; opacity: 1 }
- PropertyChanges { target: wait; opacity: 0 }
+ PropertyChanges { main.opacity: 1 }
+ PropertyChanges { wait.opacity: 0 }
}
]
}