diff options
Diffstat (limited to 'examples/quickcontrols/wearable/Wearable/SwipeViewPage.qml')
-rw-r--r-- | examples/quickcontrols/wearable/Wearable/SwipeViewPage.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/quickcontrols/wearable/Wearable/SwipeViewPage.qml b/examples/quickcontrols/wearable/Wearable/SwipeViewPage.qml new file mode 100644 index 0000000000..1f005363dc --- /dev/null +++ b/examples/quickcontrols/wearable/Wearable/SwipeViewPage.qml @@ -0,0 +1,13 @@ +// Copyright (C) 2018 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +import QtQuick +import QtQuick.Controls + +Item { + // Don't show the item when the StackView that contains us + // is being popped off the stack, as we use an x animation + // and hence would show pages that we shouldn't since we + // also don't have our own background. + visible: SwipeView.isCurrentItem || (SwipeView.view.contentItem.moving && (SwipeView.isPreviousItem || SwipeView.isNextItem)) +} |