~renatofilho/address-book-app/new-designer-contact-list

« back to all changes in this revision

Viewing changes to src/imports/MainWindow.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2014-06-17 00:41:33 UTC
  • mfrom: (169.9.9 staging)
  • Revision ID: renato.filho@canonical.com-20140617004133-m4lm6hbiiyd1zx0w
Staging merged.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import QtContacts 5.0
19
19
import Ubuntu.Components 0.1
20
20
import Ubuntu.Components.Popups 0.1 as Popups
 
21
import Ubuntu.Content 0.1 as ContentHub
21
22
 
22
23
MainView {
23
24
    id: mainWindow
110
111
    }
111
112
 
112
113
    Connections {
113
 
        target: contactContentHub
114
 
        onActiveChanged: {
115
 
            if (contactContentHub && contactContentHub.active) {
116
 
                // enter in pick mode
117
 
                mainStack.push(Qt.createComponent("ContactList/ContactListPage.qml"), {pickMode: true})
118
 
            }
 
114
        target: ContentHub.ContentHub
 
115
        onExportRequested: {
 
116
            // enter in pick mode
 
117
            mainStack.push(Qt.createComponent("ContactList/ContactListPage.qml"),
 
118
                           {pickMode: true,
 
119
                            contentHubTransfer: transfer})
119
120
        }
120
121
    }
121
122
}