Changeset View
Changeset View
Standalone View
Standalone View
src/data/contents/ui/gallery/OverlaySheetGallery.qml
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 43 | onBackRequested: { | |||
---|---|---|---|---|---|
44 | if (sheet.sheetOpen) { | 44 | if (sheet.sheetOpen) { | ||
45 | event.accepted = true; | 45 | event.accepted = true; | ||
46 | sheet.close(); | 46 | sheet.close(); | ||
47 | } | 47 | } | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | InfoSheet { | 50 | InfoSheet { | ||
51 | id: sheet | 51 | id: sheet | ||
52 | title: qsTr("Overlay Sheets") | 52 | | ||
53 | sourceUrl: "https://cgit.kde.org/kirigami-gallery.git/tree/src/data/contents/ui/gallery/OverlaySheetGallery.qml" | 53 | page: page | ||
54 | text: qsTr("The OverlaySheet control is a kind of modal content which goes over the main application content (either just the page or the whole app area) which is supposed to be used to display long contents, which may be taller than the application window itself, in which case the content will be scrollable.\nThe visual metaphore of the control is a piece of paper that scrolling, covering the page of the application, which can be dismissed scrolling it away (or tapping any area outside it).") | 54 | component: "OverlaySheetGallery" | ||
55 | | ||||
55 | } | 56 | } | ||
56 | 57 | | |||
57 | Kirigami.OverlaySheet { | 58 | Kirigami.OverlaySheet { | ||
58 | id: longSheet | 59 | id: longSheet | ||
59 | ColumnLayout { | 60 | ColumnLayout { | ||
60 | Controls.Label { | 61 | Controls.Label { | ||
61 | Layout.fillWidth: true | 62 | Layout.fillWidth: true | ||
62 | wrapMode: Text.WordWrap | 63 | wrapMode: Text.WordWrap | ||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |