~canonical-platform-qa/ubuntu-system-settings-online-accounts/launch_fixture

« back to all changes in this revision

Viewing changes to src/module/ServiceItem.qml

  • Committer: CI bot
  • Author(s): Alberto Mardegan
  • Date: 2014-05-30 13:30:01 UTC
  • mfrom: (107.1.13 master)
  • Revision ID: ps-jenkins@lists.canonical.com-20140530133001-an9lfy1dc1pfkifd
Release development branch

Features landing with this branch:
- Updating the ACL when applications are enabled/disabled in System Settings
- Write profile information in the XML files installed by click hooks
- Run tests with Python 3 autopilot.
- Merge signon-ui into online-accounts-ui 

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
Item {
25
25
    property variant accountServiceHandle
26
26
 
 
27
    signal applicationAdded(string applicationId)
 
28
    signal applicationRemoved(string applicationId)
 
29
 
27
30
    anchors.left: parent.left
28
31
    anchors.right: parent.right
29
32
    height: childrenRect.height
45
48
                checked: accountService.serviceEnabled
46
49
                onCheckedChanged: {
47
50
                    if (checked != accountService.serviceEnabled) {
 
51
                        if (checked) {
 
52
                            applicationAdded(model.applicationId)
 
53
                        } else {
 
54
                            applicationRemoved(model.applicationId)
 
55
                        }
48
56
                        accountService.updateServiceEnabled(checked)
49
57
                    }
50
58
                }