~renatofilho/messaging-app/fix-1489330

« back to all changes in this revision

Viewing changes to src/qml/MMS/PreviewerMultipleContacts.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2016-05-16 15:53:28 UTC
  • mfrom: (458.1.101 messaging-app)
  • Revision ID: renato.filho@canonical.com-20160516155328-3lkc6f6cob6jgi8k
Trunk merged.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import QtQuick 2.4
20
20
import Ubuntu.Components 1.3
21
 
import Ubuntu.Content 0.1
 
21
import Ubuntu.Content 1.3
22
22
import Ubuntu.Contacts 0.1
23
23
import Ubuntu.AddressBook.Base 0.1
24
24
import Ubuntu.AddressBook.ContactView 0.1
39
39
    }
40
40
 
41
41
    title: thumbnail.title
 
42
    flickable: contactList
 
43
 
42
44
    MultipleSelectionListView {
43
45
        id: contactList
44
46
 
45
 
        anchors.fill: parent
 
47
        anchors {
 
48
            top: parent.top
 
49
            bottom: parent.bottom
 
50
            left: parent.left
 
51
            right: parent.right
 
52
        }
46
53
        listModel: thumbnail.vcard.contacts
47
54
        listDelegate: ContactDelegate {
48
55
            id: contactDelegate
51
58
            property var contact: thumbnail.vcard.contacts[index]
52
59
 
53
60
            onClicked: {
54
 
                mainStack.push(sigleContatPreviewer, {'contact': contact})
 
61
                mainStack.addComponentToCurrentColumnSync(root, sigleContatPreviewer, {'contact': contact})
55
62
            }
56
63
        }
57
64
    }