From 9da78345d4cf998dc3a7b2e770b3853b63491b5e Mon Sep 17 00:00:00 2001 From: cutefishd Date: Tue, 27 Apr 2021 15:18:20 +0800 Subject: [PATCH] Improve network page bottom --- src/qml/NetworkPage/main.qml | 56 ++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/src/qml/NetworkPage/main.qml b/src/qml/NetworkPage/main.qml index 179744f..2ce9148 100644 --- a/src/qml/NetworkPage/main.qml +++ b/src/qml/NetworkPage/main.qml @@ -40,6 +40,10 @@ ItemPage { sourceModel: connectionModel } + NM.Configuration { + id: configuration + } + Component.onCompleted: handler.requestScan() Timer { @@ -57,6 +61,7 @@ ItemPage { ColumnLayout { id: mainLayout anchors.fill: parent + anchors.bottomMargin: FishUI.Units.largeSpacing spacing: FishUI.Units.largeSpacing * 2 RoundedItem { @@ -66,6 +71,53 @@ ItemPage { } } + // Hotspot + // 还未完善 +// RoundedItem { +// id: hotspotItem +// visible: handler.hotspotSupported + +// RowLayout { +// Label { +// text: qsTr("Hotspot") +// color: FishUI.Theme.disabledTextColor +// } + +// Item { +// Layout.fillWidth: true +// } + +// Switch { +// Layout.fillHeight: true +// rightPadding: 0 + +// onToggled: { +// if (checked) { +// handler.createHotspot() +// } else { +// handler.stopHotspot() +// } +// } +// } +// } + +// Item { +// height: FishUI.Units.largeSpacing +// } + +// TextField { +// id: ssidName +// text: configuration.hotspotName +// placeholderText: qsTr("SSID") +// } + +// TextField { +// id: hotspotPassword +// placeholderText: qsTr("Password") +// text: configuration.hotspotPassword +// } +// } + // Wired connection RoundedItem { visible: enabledConnections.wwanHwEnabled @@ -121,6 +173,10 @@ ItemPage { } } } + + Item { + height: FishUI.Units.largeSpacing + } } } }