13
13
* You should have received a copy of the GNU Lesser General Public License
14
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Author: Marco Trevisan <marco.trevisan@canonical.com>
18
20
import QtQuick.Layouts 1.1
19
21
import Ubuntu.Components 1.3
20
import Ubuntu.Components.ListItems 1.3 as ListItem
24
implicitHeight: mainColumn.implicitHeight
25
+ mainColumn.anchors.topMargin
26
+ mainColumn.anchors.bottomMargin
28
26
property alias statusIcon: statusIcon.name
29
27
property alias statusText: labelStatus.text
33
31
property bool roaming: false
39
anchors.margins: menu.__contentsMargins
40
spacing: units.gu(0.5)
43
id: labelSimIdentifier
44
elide: Text.ElideRight
47
opacity: menu.locked ? 0.6 : 1.0
54
height: labelStatus.height
34
implicitHeight: slotsLayout.height + (divider.visible ? divider.height : 0)
38
objectName: "menuItemInfoSlotsLayout"
40
mainSlot: ColumnLayout {
41
spacing: units.gu(0.5)
44
id: labelSimIdentifier
59
45
elide: Text.ElideRight
64
spacing: units.gu(0.5)
68
color: theme.palette.normal.backgroundText
70
height: labelStatus.height
78
color: theme.palette.normal.backgroundText
80
width: statusIcon.width // fix lp:1585645 by breaking the binding loop
88
spacing: units.gu(0.5)
48
opacity: menu.locked ? 0.6 : 1.0
54
height: labelStatus.height
94
58
elide: Text.ElideRight
96
text: i18n.dtr("ubuntu-settings-components", "Roaming")
102
color: theme.palette.normal.backgroundText
103
visible: menu.roaming
105
height: labelStatus.height
108
name: "network-cellular-roaming"
115
objectName: "buttonUnlockSim"
118
text: i18n.dtr("ubuntu-settings-components", "Unlock SIM")
119
Layout.preferredWidth: implicitWidth + units.gu(5)
121
onTriggered: menu.unlock()
63
spacing: units.gu(0.5)
67
color: theme.palette.normal.backgroundText
69
height: labelStatus.height
77
color: theme.palette.normal.backgroundText
79
width: statusIcon.width // fix lp:1585645 by breaking the binding loop
87
spacing: units.gu(0.5)
93
elide: Text.ElideRight
95
text: i18n.dtr("ubuntu-settings-components", "Roaming")
101
color: theme.palette.normal.backgroundText
102
visible: menu.roaming
104
height: labelStatus.height
107
name: "network-cellular-roaming"
114
objectName: "buttonUnlockSim"
117
text: i18n.dtr("ubuntu-settings-components", "Unlock SIM")
118
Layout.preferredWidth: implicitWidth + units.gu(5)
120
onTriggered: menu.unlock()