8import org.kde.kirigami as Kirigami
75Kirigami.AbstractApplicationItem {
89 readonly property alias pageStack: __pageStack
92 wideScreen: width >= applicationWindow().pageStack.defaultColumnWidth * 2
94 Component.onCompleted: {
95 pageStack.currentItem?.forceActiveFocus();
106 const backEvent = {accepted:
false}
107 if (root.pageStack.currentIndex >= 1) {
108 root.pageStack.currentItem.backRequested(backEvent);
109 if (!backEvent.accepted) {
110 root.pageStack.flickBack();
111 backEvent.accepted =
true;
115 if (Kirigami.Settings.isMobile && !backEvent.accepted &&
Qt.platform.os !==
"ios") {
119 function goForward() {
120 root.pageStack.currentIndex = Math.min(root.pageStack.depth - 1, root.pageStack.currentIndex + 1);
122 Keys.onBackPressed:
event => {
124 event.accepted =
true;
127 sequences: [StandardKey.Forward]
128 onActivated: __pageStack.goForward();
131 sequences: [StandardKey.Back]
132 onActivated: __pageStack.goBack();
135 background: Rectangle {
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:44 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.