~diegosarmentero/+junk/settings-temp

« back to all changes in this revision

Viewing changes to plugins/system-update/qml/Configuration.qml

  • Committer: Diego Sarmentero
  • Date: 2013-11-08 14:07:59 UTC
  • Revision ID: diego.sarmentero@gmail.com-20131108140759-qver3vzxvej7vd22
Adding files for new ui design and click updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 */
18
18
 
19
19
import QtQuick 2.0
20
 
import SystemSettings 1.0
21
20
import Ubuntu.Components 0.1
22
21
import Ubuntu.Components.ListItems 0.1 as ListItem
23
22
import Ubuntu.SystemSettings.Update 1.0
25
24
 
26
25
ItemPage {
27
26
    id: root
28
 
    property UbuntuUpdatePanel updateBackend
 
27
    property UpdateManager updateBackend
29
28
    title: i18n.tr("Auto download")
30
29
 
31
30
    ListItem.ItemSelector {
36
35
        delegate: selectorDelegate
37
36
        selectedIndex: updateBackend.downloadMode
38
37
        onSelectedIndexChanged: updateBackend.downloadMode = selectedIndex
39
 
        /* Not sure why it's needed but nothing is selected without that */
40
38
        Component.onCompleted: selectedIndex = updateBackend.downloadMode
41
39
    }
42
40
    Component {