|
|
|
@ -57,30 +57,52 @@ ItemPage {
|
|
|
|
ColumnLayout {
|
|
|
|
ColumnLayout {
|
|
|
|
id: mainLayout
|
|
|
|
id: mainLayout
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
spacing: FishUI.Units.largeSpacing * 2
|
|
|
|
|
|
|
|
|
|
|
|
// Wired connection
|
|
|
|
// Wired connection
|
|
|
|
ColumnLayout {
|
|
|
|
RoundedItem {
|
|
|
|
id: wiredLayout
|
|
|
|
visible: enabledConnections.wwanHwEnabled
|
|
|
|
|
|
|
|
|
|
|
|
visible: enabledConnections.wwanEnabled && wiredView.count > 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
RowLayout {
|
|
|
|
|
|
|
|
spacing: FishUI.Units.largeSpacing
|
|
|
|
|
|
|
|
|
|
|
|
Label {
|
|
|
|
Label {
|
|
|
|
text: qsTr("Wired")
|
|
|
|
text: qsTr("Wired")
|
|
|
|
color: FishUI.Theme.disabledTextColor
|
|
|
|
color: FishUI.Theme.disabledTextColor
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
|
|
|
|
Layout.fillHeight: true
|
|
|
|
|
|
|
|
rightPadding: 0
|
|
|
|
|
|
|
|
checked: enabledConnections.wwanEnabled
|
|
|
|
|
|
|
|
onCheckedChanged: {
|
|
|
|
|
|
|
|
if (checked) {
|
|
|
|
|
|
|
|
if (!enabledConnections.wwanEnabled) {
|
|
|
|
|
|
|
|
handler.enableWwan(checked)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (enabledConnections.wwanEnabled) {
|
|
|
|
|
|
|
|
handler.enableWwan(checked)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ListView {
|
|
|
|
ListView {
|
|
|
|
id: wiredView
|
|
|
|
id: wiredView
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
visible: enabledConnections.wwanEnabled
|
|
|
|
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
implicitHeight: wiredView.count * control.itemHeight
|
|
|
|
Layout.preferredHeight: wiredView.count * control.itemHeight
|
|
|
|
|
|
|
|
interactive: false
|
|
|
|
clip: true
|
|
|
|
clip: true
|
|
|
|
|
|
|
|
|
|
|
|
model: NM.TechnologyProxyModel {
|
|
|
|
model: NM.TechnologyProxyModel {
|
|
|
|
type: NM.TechnologyProxyModel.WiredType
|
|
|
|
type: NM.TechnologyProxyModel.WiredType
|
|
|
|
|
|
|
|
showInactiveConnections: true
|
|
|
|
sourceModel: networkModel
|
|
|
|
sourceModel: networkModel
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -93,10 +115,6 @@ ItemPage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HorizontalDivider {
|
|
|
|
|
|
|
|
visible: wiredView.visible && enabledConnections.wirelessHwEnabled
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RoundedItem {
|
|
|
|
RoundedItem {
|
|
|
|
WifiView {
|
|
|
|
WifiView {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|