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

« back to all changes in this revision

Viewing changes to src/imports/Ubuntu/AddressBook/ContactView/ContactDetailWithTypeView.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:
17
17
import QtQuick 2.2
18
18
import QtContacts 5.0
19
19
 
 
20
import Ubuntu.Components 1.1
20
21
import Ubuntu.AddressBook.Base 0.1
21
22
 
22
23
ContactDetailBase {
39
40
 
40
41
    implicitHeight: view.implicitHeight
41
42
    onIsReadyChanged: populateValues()
 
43
 
42
44
    Connections {
43
45
        target: root.detail
44
46
        onDetailChanged: populateValues()
52
54
        parentIndex: root.index
53
55
 
54
56
        anchors {
55
 
            right: parent.right
 
57
            left: parent.left
 
58
            leftMargin: units.gu(2)
 
59
            right: icon.left
56
60
            rightMargin: units.gu(2)
57
61
            top: parent.top
58
 
            left: parent.left
59
 
            leftMargin: units.gu(2)
60
 
        }
 
62
        }
 
63
    }
 
64
 
 
65
    Icon {
 
66
        id: icon
 
67
 
 
68
        anchors {
 
69
            right: parent.right
 
70
            rightMargin: units.gu(3)
 
71
            verticalCenter: parent.verticalCenter
 
72
        }
 
73
        width: root.action && (root.action.iconName !== "") ? units.gu(2.5) : 0
 
74
        height: width
 
75
        name: root.action ? root.action.iconName : ""
61
76
    }
62
77
}