~ken-vandine/ubuntu-system-settings/no_s_i_d

« back to all changes in this revision

Viewing changes to plugins/security-privacy/AppAccessControl.qml

  • Committer: Bileto Bot
  • Author(s): Ken VanDine
  • Date: 2016-07-22 14:38:13 UTC
  • mfrom: (1556.3.32 slotsLayout)
  • Revision ID: ci-train-bot@canonical.com-20160722143813-ht9e4766lm0ie5fa
Ported to use Slots layout and updated visuals (LP: #1596529)

Approved by: Jonas G. Drange

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2013 Canonical Ltd
 
2
 * Copyright (C) 2013-2016 Canonical Ltd
3
3
 *
4
4
 * This program is free software: you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License version 3 as
18
18
 */
19
19
 
20
20
import QtQuick 2.4
 
21
import SystemSettings 1.0
 
22
import SystemSettings.ListItems 1.0 as SettingsListItems
21
23
import Ubuntu.Components 1.3
22
 
import Ubuntu.Components.ListItems 1.3 as ListItem
23
 
import SystemSettings 1.0
 
24
import Ubuntu.Components.ListItems 1.3 as ListItems
24
25
 
25
26
ItemPage {
26
27
    id: root
43
44
            anchors.left: parent.left
44
45
            anchors.right: parent.right
45
46
 
46
 
            ListItem.Caption {
 
47
            ListItems.Caption {
47
48
                id: captionLabel
48
49
            }
49
50
 
50
51
            Repeater {
51
52
                id: repeater
52
53
 
53
 
                ListItem.Standard {
 
54
                SettingsListItems.Icon {
54
55
                    text: model.applicationName
55
56
                    iconSource: model.iconName
56
 
                    control: Switch {
 
57
                    Switch {
57
58
                        id: welcomeStatsSwitch
58
59
                        checked: model.granted
59
60
                        onClicked: root.model.setEnabled(index, !model.granted)