Debian Codegraph @

plugins/ubuntu-plugin/imports/components/NavPluginModel.qml

raw
1 import QtQuick 2.4
2 import PlugMan 1.0
3 import Lomiri.Components 1.3
4 import Dekko.Mail.API 1.0
5
6 Item {
7
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 }