Changeset View
Changeset View
Standalone View
Standalone View
src/controls/Page.qml
Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Line(s) | 33 | T2.Page { | |||
---|---|---|---|---|---|
220 | * For instance a global "back" shortcut or the Android | 220 | * For instance a global "back" shortcut or the Android | ||
221 | * Back button has been pressed. | 221 | * Back button has been pressed. | ||
222 | * The page can manage the back event by itself, | 222 | * The page can manage the back event by itself, | ||
223 | * and if it set event.accepted = true, it will stop the main | 223 | * and if it set event.accepted = true, it will stop the main | ||
224 | * application to manage the back event. | 224 | * application to manage the back event. | ||
225 | */ | 225 | */ | ||
226 | signal backRequested(var event); | 226 | signal backRequested(var event); | ||
227 | 227 | | |||
228 | anchors.topMargin: (applicationWindow() && !applicationWindow().wideScreen && Kirigami.Settings.isMobile && applicationWindow().controlsVisible && applicationWindow().header ? applicationWindow().header.preferredHeight : 0) | | |||
229 | | ||||
230 | //NOTE: This exists just because control instances require it | 228 | //NOTE: This exists just because control instances require it | ||
231 | contentItem: Item { | 229 | contentItem: Item { | ||
232 | onChildrenChanged: { | 230 | onChildrenChanged: { | ||
233 | //NOTE: make sure OverlaySheets are directly under the root | 231 | //NOTE: make sure OverlaySheets are directly under the root | ||
234 | //so they are over all the contents and don't have margins | 232 | //so they are over all the contents and don't have margins | ||
235 | //search for an OverlaySheet, unfortunately have to blind test properties | 233 | //search for an OverlaySheet, unfortunately have to blind test properties | ||
236 | //as there is no way to get the classname from qml objects | 234 | //as there is no way to get the classname from qml objects | ||
237 | //TODO: OverlaySheets should be Popup instead? | 235 | //TODO: OverlaySheets should be Popup instead? | ||
Show All 32 Lines |