~renatofilho/address-book-app/rename-contacts-service

« back to all changes in this revision

Viewing changes to src/imports/Ubuntu/Contacts/ContactListView.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2015-10-06 14:46:50 UTC
  • Revision ID: renato.filho@canonical.com-20151006144650-zag80rqloabllg2f
Renamed from 'contacts' service to 'buteo-contacts'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
214
214
    */
215
215
    // we are using 'buteoSync.visibleSyncProfiles because' it is a property
216
216
    // and will re-check if the property changes.
217
 
    // Using only '(buteoSync.syncProfilesByCategory("contacts").length > 0)'
 
217
    // Using only '(buteoSync.syncProfilesByCategory(""buteo-contacts").length > 0)'
218
218
    // the value will be checked only on app startup
219
219
    readonly property bool syncEnabled: (buteoSync.profilesCount > 0) &&
220
 
                                        (buteoSync.syncProfilesByCategory("contacts").length > 0)
 
220
                                        (buteoSync.syncProfilesByCategory("buteo-contacts").length > 0)
221
221
    /*!
222
222
      \qmlproperty bool busy
223
223
 
349
349
    */
350
350
    function sync()
351
351
    {
352
 
       buteoSync.startSyncByCategory("contacts")
 
352
       buteoSync.startSyncByCategory("buteo-contacts")
353
353
    }
354
354
 
355
355
    ContactSimpleListView {