38 readonly
property alias drawer: _drawerLoader.item
55 property bool rootOnlyDrawer:
true 59 z: _rootStack.empty ? 10 : -10
74 interactive: !_root.rootOnlyDrawer || _rootStack.depth == 1
80 rootItem: _root.contentItem
85 rootItem: _root.contentItem
98 function presentDrawerContent(item) {
99 if(!_drawerLoader.item)
100 _drawerLoader.active =
true;
101 return _drawerLoader.item.presentDrawerContent(item);
113 function presentItem(item) {
114 return _rootStack.presentItem(item);
126 function presentPopup(popup) {
127 return _rootPopup.presentPopup(popup);
140 function showDialog(config, result) {
141 return _rootDialogs.
showDialog(config, result);
145 function toggleDrawer() {
146 if(_drawerLoader.item)
147 _drawerLoader.item.toggle();
149 console.warn(
"No drawer like view active. Cannot toggle drawer");
165 function closeAction() {
168 closed = _rootDialogs.closeAction();
170 closed = _rootPopup.closeAction();
171 if(!closed && _drawerLoader.item)
172 closed = _drawerLoader.item.closeAction();
174 closed = _rootStack.closeAction();
180 onClosing: close.accepted = !closeAction();
A Drawer that can be used as a presenter for drawer views.
A ProgressBar with automatic bindings to the presenters view loading progress.
QObject qmlPresenter
The primary presenter QML object.
A presentation helper that can present standard mvvm views.
A presentation helper that can present generic mvvm dialogs.
bool showDialog(MessageConfig config, MessageResult result)
The primary presenting method to present a dialog.
The QML import for the QtMvvmQuick QML module.
A QML singleton to access common presenter methods globally.