Dekko
Loading...
Searching...
No Matches
NavPluginModel.qml
1import QtQuick 2.4
2import PlugMan 1.0
3import Lomiri.Components 1.3
4import Dekko.Mail.API 1.0
5
6Item {
8 property alias plugins: navRegistry.actions
9
10
11 ItemRegistry {
12 id: registry
13 }
14
15 // Mail stage is special here as it's the only one kept on the stack
16 // all other stage plugins are destroyed on stage push's
17 // If you want your stage to maintain state then you should make
18 // use of the store/worker pattern and use MazDB or MazDBSettings for data persistence
19 ActionRegistry {
20 id: navRegistry
21 location: "Dekko::Stage::Action"
22 defaultActions: [
23 Action {
24 iconName: "mail-unread"
25 onTriggered: ViewActions.rewindStageStack()
26 }
27 ]
28 }
29
30}