Dekko
Loading...
Searching...
No Matches
IdentitiesListModel.qml
1
import
QtQuick 2.4
2
import MazDB 1.0
3
import Dekko.Mail.Stores.Accounts 1.0
4
5
MazDBListModel {
6
source: AccountStore.identities.sourcePath
7
excludeKeys: ["/meta"]
8
customRoles: [
9
"id"
,
10
"name"
,
11
"email"
,
12
"signature"
,
13
"accountName"
14
]
15
rolesCallBack: function (role, key, value) {
16
switch
(role) {
17
case
"id"
:
18
return
value.id
19
case
"name"
:
20
return
value.name
21
case
"email"
:
22
return
value.email
23
case
"signature"
:
24
return
value.signature
25
case
"accountName"
:
26
return
AccountStore.enabledAccounts.get(value.parentId).name
27
default
:
28
return
value
29
}
30
}
31
}
plugins
ubuntu-plugin
plugins
core
mail
models
IdentitiesListModel.qml
Generated by
1.9.8