aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-09-04 10:38:32 +0200
committerMitch Curtis <mitch.curtis@qt.io>2018-09-10 08:52:15 +0000
commitb41a32bc8ed42001c59af22345af4b733398aa34 (patch)
treef0b205ee8b46cc94054e282150fab37ac3bdb81a /examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml
parentc4012e9a25514a76ae8f826142a3a3b121c9f322 (diff)
wearable: fix items still being visible when returning to LauncherPage
Hide SwipeView items when appropriate, as it's not done automatically. Change-Id: Ic716da004794b7d0eba65c220f6242d4113302d9 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml')
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml b/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml
index 2ef0133c..a02b44ee 100644
--- a/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml
+++ b/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml
@@ -50,6 +50,7 @@
import QtQuick 2.7
import QtQuick.Controls 2.0 as QQC2
+import ".."
import "../Style"
import "weather.js" as WeatherData
@@ -59,7 +60,7 @@ Item {
anchors.fill: parent
- Item {
+ SwipeViewPage {
id: weatherPage1
Row {
@@ -114,7 +115,7 @@ Item {
}
}
- Item {
+ SwipeViewPage {
id: weatherPage2
Column {
@@ -169,7 +170,7 @@ Item {
}
}
- Item {
+ SwipeViewPage {
id: weatherPage3
Row {
@@ -224,7 +225,7 @@ Item {
}
}
- Item {
+ SwipeViewPage {
id: weatherPage4
Column {