2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2018 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2018-09-04 08:38:32 +00:00
|
|
|
|
2020-03-26 16:01:51 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
2018-09-04 08:38:32 +00:00
|
|
|
|
|
|
|
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))
|
|
|
|
}
|