~barry/ubuntu/trusty/dialer-app/py3autopilot

« back to all changes in this revision

Viewing changes to src/qml/HistoryPage/CallLogContactDelegate.qml

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Bill Filler, Łukasz 'sil2100' Zemczak, Ubuntu daily release
  • Date: 2013-10-29 12:41:11 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20131029124111-j7yajy9wi88el2f4
Tags: 0.1+14.04.20131029.1-0ubuntu1
[ Bill Filler ]
* make all expandable items full opaque. close expandable items when
  the app becomes inactive

[ Łukasz 'sil2100' Zemczak ]
* add missing autopilot dependency

[ Ubuntu daily release ]
* Automatic snapshot from revision 72

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
         id: newContactDialog
34
34
         Dialog {
35
35
             id: dialogue
36
 
             property bool saveToExistingContact: false
37
36
             title: i18n.tr("Save contact")
38
37
             text: i18n.tr("How do you want to save the contact?")
39
38
             Button {
41
40
                 color: UbuntuColors.orange
42
41
                 onClicked: {
43
42
                     PopupUtils.close(dialogue)
44
 
                     saveToExistingContact = true
45
43
                     PopupUtils.open(addPhoneNumberToContactSheet)
46
44
                 }
47
45
             }
60
58
                     PopupUtils.close(dialogue)
61
59
                 }
62
60
             }
63
 
             // if we emit itemClicked(), addPhoneNumberToContactSheet will become unresponsive
64
 
             Component.onDestruction: !saveToExistingContact && itemClicked()
65
61
         }
66
62
    }
67
63
 
88
84
                    PopupUtils.close(sheet)
89
85
                }
90
86
            }
91
 
            Component.onDestruction: itemClicked()
92
87
        }
93
88
    }
94
89
 
114
109
                fontSize: "medium"
115
110
                iconName: "call-start"
116
111
                onClicked: {
117
 
                    itemClicked()
118
112
                    mainView.call(phoneNumber)
 
113
                    itemClicked()
119
114
                }
120
115
            }
121
116
            ExpandableButton {
122
117
                text: i18n.tr("Send text message")
123
118
                fontSize: "small"
124
119
                iconName: "messages"
125
 
                opacity: 0.2
126
120
                onClicked: {
127
 
                    itemClicked()
128
121
                    mainView.sendMessage(phoneNumber)
129
122
                }
130
123
            }
133
126
                text: unknownContact ? i18n.tr("Save contact") : i18n.tr("View contact")
134
127
                fontSize: "small"
135
128
                iconName: unknownContact ? "new-contact" : "contact"
136
 
                opacity: 0.2
137
129
                onClicked: {
138
130
                    if (unknownContact) {
139
131
                        PopupUtils.open(newContactDialog)
140
132
                    } else {
141
133
                        mainView.viewContact(contactId)
142
 
                        itemClicked()
143
134
                    }
144
135
                }
145
136
            }