~robert-ancell/address-book-app/new-qml-packages

« back to all changes in this revision

Viewing changes to src/imports/Ubuntu/AddressBook/ContactView/ContactDetailPhoneNumberView.qml

  • Committer: CI Train Bot
  • Author(s): Renato Araujo Oliveira Filho
  • Date: 2015-06-01 22:13:53 UTC
  • mfrom: (424.2.18 mailto)
  • Revision ID: ci-train-bot@canonical.com-20150601221353-7cmb3eef6wn9f1kz
Add 'mailto' url call when clicking on e-mail field. Fixes: #1378345
Approved by: Gustavo Pichorim Boiko, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    property alias lineHeight: view.lineHeight
26
26
    readonly property bool isReady: (fields != null) && (detail != null)
27
27
 
 
28
    signal actionTrigerred(string actionName, QtObject detail)
 
29
 
28
30
    function populateValues()
29
31
    {
30
32
        if (isReady) {
38
40
 
39
41
    implicitHeight: view.implicitHeight
40
42
    onIsReadyChanged: populateValues()
 
43
 
41
44
    Connections {
42
45
        target: root.detail
43
46
        onDetailChanged: populateValues()
71
74
        width: units.gu(4)
72
75
        height: units.gu(4)
73
76
        iconName: "message"
74
 
        onClicked: root.actionTrigerred("message")
 
77
        onClicked: root.actionTrigerred("message", root.detail)
75
78
    }
76
79
 
77
80
 
88
91
        width: units.gu(4)
89
92
        height: units.gu(4)
90
93
        iconName: "call-start"
91
 
        onClicked: root.actionTrigerred("tel")
 
94
        onClicked: root.actionTrigerred("tel", root.detail)
92
95
    }
93
 
 
94
96
}