30 property SettingsViewModel viewModel: null
44 property bool fullClose:
false 57 function closeAction() {
58 return !fullClose && _settingsStack.closeAction();
72 Layout.fillWidth:
true 73 Layout.fillHeight:
true 75 title: qsTr(
"Settings")
76 allowSearch: _builder.allowSearch
77 searchToolTip: qsTr("Search in settings")
82 visible: _builder.allowRestore
83 icon.source:
"qrc:/de/skycoder42/qtmvvm/quick/icons/ic_settings_backup_restore.svg" 84 text: qsTr(
"Restore settings")
85 onClicked: _builder.restoreDefaults()
96 function closeAction() {
97 if(_settingsStack.depth <= 1)
100 _settingsStack.pop();
107 id: _overviewComponent
111 property alias model: __ovListView.model
112 property alias showSections: __ovListView.showSections
120 Component.onCompleted: _settingsStack.push(__ovScrollView)
125 id: _sectionViewComponent
129 property alias model: __secListView.model
137 Component.onCompleted: _settingsStack.push(__secScrollView)
143 buildView: _settingsView
144 viewModel: _settingsView.viewModel
145 filterText: _searchBar.searchText
147 onPresentOverview: _overviewComponent.incubateObject(_settingsStack, {
149 showSections: hasSections
151 onPresentSection: _sectionViewComponent.incubateObject(_settingsStack, {
155 _settingsView.fullClose =
true;
A ProgressBar with automatic bindings to the presenters view loading progress.
The QML import for the QtMvvmCore QML module.
static void popView()
Pops the current top level view.
The QML import for the QtMvvmQuick QML module.
A ToolBarLabel with a search button next to it, that can turn into a searchbar.
A QML singleton to access common presenter methods globally.