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

« back to all changes in this revision

Viewing changes to plugins/cellular/Components/MultiSim.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) 2014 Canonical Ltd
 
2
 * Copyright (C) 2014-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
20
20
import QtQuick 2.4
21
21
import GSettings 1.0
22
22
import SystemSettings 1.0
 
23
import SystemSettings.ListItems 1.0 as SettingsListItems
23
24
import Ubuntu.Components 1.3
24
 
import Ubuntu.Components.ListItems 1.3 as ListItem
25
25
import Ubuntu.SystemSettings.Cellular 1.0
 
26
import Ubuntu.Components.ListItems 1.3 as ListItems
26
27
 
27
28
/* This is a temporary solution to the issue of Hotspots failing on mako. If
28
29
the device is mako, we hide the hotspot entry. Will be removed once lp:1434591
54
55
        anchors { left: parent.left; right: parent.right }
55
56
    }
56
57
 
57
 
    ListItem.Standard {
 
58
    SettingsListItems.StandardProgression {
58
59
        id: dataUsage
59
60
        text: i18n.tr("Data usage statistics")
60
 
        progression: true
61
61
        visible: showAllUI
62
62
    }
63
63
 
64
 
    ListItem.Divider {}
65
 
 
66
 
    ListItem.SingleValue {
 
64
    SettingsListItems.SingleValueProgression {
67
65
        text: i18n.tr("Carriers")
68
66
        id: chooseCarrier
69
67
        objectName: "carrierApnEntry"
70
 
        progression: enabled
 
68
        progressionVisible: enabled
71
69
        showDivider: false
72
70
        onClicked: {
73
71
            pageStack.push(Qt.resolvedUrl("../PageCarriersAndApns.qml"), {
76
74
        }
77
75
    }
78
76
 
79
 
    ListItem.Divider {}
80
 
 
81
77
    SimEditor {
82
78
        anchors { left: parent.left; right: parent.right }
83
79
    }
84
80
 
85
 
    ListItem.Divider {}
 
81
    ListItems.Divider {}
86
82
 
87
83
    DefaultSim {
88
84
        anchors { left: parent.left; right: parent.right }
89
85
    }
90
86
 
91
 
    ListItem.Divider {}
 
87
    ListItems.Divider {}
92
88
 
93
89
    SettingsItemTitle { text: i18n.tr("Connection type:") }
94
90
 
95
91
    Repeater {
96
92
        model: sims
97
93
 
98
 
        ListItem.ItemSelector {
 
94
        ListItems.ItemSelector {
99
95
            id: radio
100
96
            property var sim: modelData
101
97