29
29
title: i18n.tr("Add recipient")
37
leftMargin: units.gu(2)
39
rightMargin: units.gu(2)
40
topMargin: units.gu(1.5)
41
bottomMargin: units.gu(1.5)
42
verticalCenter: parent.verticalCenter
44
onTextChanged: contactList.currentIndex = -1
45
inputMethodHints: Qt.ImhNoPredictiveText
46
placeholderText: i18n.tr("Search...")
36
leftMargin: units.gu(2)
38
rightMargin: units.gu(2)
39
topMargin: units.gu(1.5)
40
bottomMargin: units.gu(1.5)
41
verticalCenter: parent.verticalCenter
48
sections.model: ["All", "Favorites"]
43
onTextChanged: newRecipientPage.currentIndex = -1
44
inputMethodHints: Qt.ImhNoPredictiveText
45
placeholderText: i18n.tr("Search...")
57
text: i18n.tr("Search")
60
newRecipientPage.state = "searching"
61
contactList.showAllContacts()
62
searchField.forceActiveFocus()
67
target: newRecipientPage.head
68
actions: defaultState.actions
69
sections.model: [i18n.tr("All"), i18n.tr("Favorites")]
83
text: i18n.tr("Cancel")
85
newRecipientPage.forceActiveFocus()
86
newRecipientPage.state = "default"
87
newRecipientPage.head.sections.selectedIndex = 0
92
target: newRecipientPage.head
93
backAction: searchingState.backAction
52
106
target: newRecipientPage.head.sections
53
107
onSelectedIndexChanged: {
73
127
right: parent.right
74
128
bottom: keyboard.top
132
id: addNewContactButton
133
objectName: "addNewContact"
143
color: Theme.palette.selected.background
144
opacity: addNewContactButtonArea.pressed ? 1.0 : 0.0
153
bottom: parent.bottom
158
color: Theme.palette.normal.overlay
160
anchors.centerIn: parent
163
source: "image://theme/add"
172
leftMargin: units.gu(2)
173
verticalCenter: parent.verticalCenter
175
rightMargin: units.gu(2)
177
color: UbuntuColors.lightAubergine
178
// TRANSLATORS: this refers to creating a new contact
179
text: i18n.tr("+ Create New")
180
elide: Text.ElideRight
184
id: addNewContactButtonArea
187
onClicked: Qt.openUrlExternally("addressbook:///create?callback=messaging-app.desktop&phone= ")
76
191
filterTerm: searchField.text
77
192
detailToPick: ContactDetail.PhoneNumber
78
193
onDetailClicked: {