mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
kcms/mobiledata: Fix SIM lock page and page margins
This commit is contained in:
parent
fc97b0e241
commit
0aba11af83
3 changed files with 25 additions and 21 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
import QtQuick 2.12
|
||||
import QtQuick
|
||||
import QtQuick.Layouts 1.2
|
||||
import QtQuick.Controls 2.12 as Controls
|
||||
|
||||
|
|
@ -95,9 +95,9 @@ FormCard.FormCardPage {
|
|||
}
|
||||
|
||||
data: [
|
||||
RegExpValidator {
|
||||
RegularExpressionValidator {
|
||||
id: pinValidator
|
||||
regExp: /[0-9]+/
|
||||
regularExpression: /[0-9]+/
|
||||
},
|
||||
// dialogs
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,8 @@ FormCard.FormCardPage {
|
|||
}
|
||||
|
||||
FormCard.FormCard {
|
||||
Layout.topMargin: Kirigami.Units.gridUnit
|
||||
|
||||
FormCard.FormSwitchDelegate {
|
||||
id: dataRoamingCheckBox
|
||||
text: i18n("Data Roaming")
|
||||
|
|
@ -91,7 +93,7 @@ FormCard.FormCardPage {
|
|||
icon.name: "unlock"
|
||||
text: i18n("SIM Lock")
|
||||
description: i18n("Modify SIM lock settings.")
|
||||
enabled: simEnabled
|
||||
// enabled: simEnabled
|
||||
onClicked: kcm.push("SimLockPage.qml", { "sim": sim });
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,23 @@ KCM.SimpleKCM {
|
|||
topPadding: 0
|
||||
bottomPadding: 0
|
||||
|
||||
PlasmaNM.Handler {
|
||||
id: nmHandler
|
||||
}
|
||||
|
||||
PlasmaNM.AvailableDevices {
|
||||
id: availableDevices
|
||||
}
|
||||
|
||||
PlasmaNM.EnabledConnections {
|
||||
id: enabledConnections
|
||||
}
|
||||
|
||||
SimPage {
|
||||
id: simPage
|
||||
visible: false
|
||||
}
|
||||
|
||||
Kirigami.PlaceholderMessage {
|
||||
id: noModem
|
||||
anchors.centerIn: parent
|
||||
|
|
@ -40,23 +57,6 @@ KCM.SimpleKCM {
|
|||
width: root.width
|
||||
visible: !noModem.visible
|
||||
|
||||
PlasmaNM.Handler {
|
||||
id: nmHandler
|
||||
}
|
||||
|
||||
PlasmaNM.AvailableDevices {
|
||||
id: availableDevices
|
||||
}
|
||||
|
||||
PlasmaNM.EnabledConnections {
|
||||
id: enabledConnections
|
||||
}
|
||||
|
||||
SimPage {
|
||||
id: simPage
|
||||
visible: false
|
||||
}
|
||||
|
||||
MessagesList {
|
||||
Layout.fillWidth: true
|
||||
Layout.margins: Kirigami.Units.largeSpacing
|
||||
|
|
@ -64,6 +64,8 @@ KCM.SimpleKCM {
|
|||
}
|
||||
|
||||
FormCard.FormCard {
|
||||
Layout.topMargin: Kirigami.Units.gridUnit
|
||||
|
||||
FormCard.FormSwitchDelegate {
|
||||
id: mobileDataSwitch
|
||||
text: i18n("Mobile data")
|
||||
|
|
|
|||
Loading…
Reference in a new issue