Dekko
Loading...
Searching...
No Matches
ContactListPage.qml
1import QtQuick 2.4
2import Lomiri.Components 1.3
3import Dekko.Mail.API 1.0
4import Dekko.Contacts 1.0
5import Dekko.Lomiri.Components 1.0
6import Dekko.Lomiri.Constants 1.0
8
9DekkoPage {
10 id: contactsListPage
11 pageHeader.title: addressBook ? addressBook.name : qsTr("Address book")
12 pageHeader.backAction:!dekko.isLargeFF ? bkAction : null
13
14 Action {
15 id: bkAction
16 iconName: "back"
17 onTriggered: ViewActions.popStage()
18 }
19
20 property AddressBook addressBook: ContactsStore.selectedAddressBook
21
24 anchors.fill: parent
25 addressBook: contactsListPage.addressBook
26 onContactClicked: ViewActions.replaceTopStageAreaItem(
27 ContactKeys.contactViewStageArea,
28 Qt.resolvedUrl("./ContactView.qml"),
29 {contact: contact})
30 }
31 }
32}
33