Changeset View
Changeset View
Standalone View
Standalone View
src/data/contents/ui/gallery/DrawerGallery.qml
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 59 | onBackRequested: { | |||
---|---|---|---|---|---|
60 | if (sheet.sheetOpen) { | 60 | if (sheet.sheetOpen) { | ||
61 | event.accepted = true; | 61 | event.accepted = true; | ||
62 | sheet.close(); | 62 | sheet.close(); | ||
63 | } | 63 | } | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | InfoSheet { | 66 | InfoSheet { | ||
67 | id: sheet | 67 | id: sheet | ||
68 | title: qsTr("Drawers") | 68 | | ||
69 | page: page | 69 | page: page | ||
70 | sourceUrl: "https://cgit.kde.org/kirigami-gallery.git/tree/src/data/contents/ui/gallery/DrawerGallery.qml" | 70 | component: "DrawerGallery" | ||
71 | text: qsTr("Drawers are bars anchored to an edge of the screen: left, right, top or bottom.\nOn the left edge they should contain controls and settings global for the whole app, and is strongly encouraged to use the default component GlobalDrawer and to have only one instance for the whole application.\nOn the right edge they should have context-dependent actions linked to the current Page. It is strongly suggested to use the default component ContextDrawer for this and to have only one instance for the whole application.\nDrawers can be modal(default) in which they block input in the rest of the application window, clicking on a darkened out area will dismiss the drawer.\nNon modal drawers will leave the rest of the application window functional and vertical(left and right edge) drawers will become sidebars.\nNon modal drawers can also be collapsible, switching from a full vertical sidebar to a more compact vertical toolbar.\nYou can test between different Drawer modes in the \"Global Drawer Mode...\" menu entry in the global drawer of this application running on Desktop systems.") | | |||
72 | } | 71 | } | ||
73 | 72 | | |||
74 | Kirigami.OverlayDrawer { | 73 | Kirigami.OverlayDrawer { | ||
75 | id: modalBottomDrawer | 74 | id: modalBottomDrawer | ||
76 | edge: Qt.BottomEdge | 75 | edge: Qt.BottomEdge | ||
77 | contentItem: ColumnLayout { | 76 | contentItem: ColumnLayout { | ||
78 | Controls.Label { | 77 | Controls.Label { | ||
79 | Layout.fillWidth: true | 78 | Layout.fillWidth: true | ||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |