Changeset View
Changeset View
Standalone View
Standalone View
src/controls/GlobalDrawer.qml
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | |||||
64 | * @endcode | 64 | * @endcode | ||
65 | * | 65 | * | ||
66 | */ | 66 | */ | ||
67 | OverlayDrawer { | 67 | OverlayDrawer { | ||
68 | id: root | 68 | id: root | ||
69 | edge: Qt.application.layoutDirection == Qt.RightToLeft ? Qt.RightEdge : Qt.LeftEdge | 69 | edge: Qt.application.layoutDirection == Qt.RightToLeft ? Qt.RightEdge : Qt.LeftEdge | ||
70 | handleClosedIcon.source: null | 70 | handleClosedIcon.source: null | ||
71 | handleOpenIcon.source: null | 71 | handleOpenIcon.source: null | ||
72 | handleVisible: (typeof(applicationWindow)===typeof(Function) && applicationWindow() ? applicationWindow().controlsVisible : true) && (!isMenu || Settings.isMobile) | ||||
72 | 73 | | |||
73 | /** | 74 | /** | ||
74 | * title: string | 75 | * title: string | ||
75 | * A title to be displayed on top of the drawer | 76 | * A title to be displayed on top of the drawer | ||
76 | */ | 77 | */ | ||
77 | property alias title: bannerImage.title | 78 | property alias title: bannerImage.title | ||
78 | 79 | | |||
79 | /** | 80 | /** | ||
▲ Show 20 Lines • Show All 130 Lines • ▼ Show 20 Line(s) | |||||
210 | /** | 211 | /** | ||
211 | * currentSubMenu: Action | 212 | * currentSubMenu: Action | ||
212 | * | 213 | * | ||
213 | * Points to the action acting as a submenu | 214 | * Points to the action acting as a submenu | ||
214 | */ | 215 | */ | ||
215 | readonly property Action currentSubMenu: stackView.currentItem ? stackView.currentItem.current: null | 216 | readonly property Action currentSubMenu: stackView.currentItem ? stackView.currentItem.current: null | ||
216 | 217 | | |||
217 | /** | 218 | /** | ||
219 | * isMenu: bool | ||||
220 | * When true the global drawer becomes a menu on the desktop. Defauls to false. | ||||
221 | * @since 2.11 | ||||
mart: @since 2.11 | |||||
222 | */ | ||||
223 | property bool isMenu: false | ||||
224 | | ||||
225 | /** | ||||
218 | * Notifies that the banner has been clicked | 226 | * Notifies that the banner has been clicked | ||
219 | */ | 227 | */ | ||
220 | signal bannerClicked() | 228 | signal bannerClicked() | ||
221 | 229 | | |||
222 | /** | 230 | /** | ||
223 | * Reverts the menu back to its initial state | 231 | * Reverts the menu back to its initial state | ||
224 | */ | 232 | */ | ||
225 | function resetMenu() { | 233 | function resetMenu() { | ||
▲ Show 20 Lines • Show All 251 Lines • Show Last 20 Lines |
@since 2.11