Skip to content

Commit 11ed2b0

Browse files
committed
fix: fix proxy method change handling and add type property
1. Fixed Connections target in PageSystemProxy.qml from 'item' to 'netItem' to properly handle method changes 2. Added 'type' property binding in PageSettings.qml to pass network type to SectionGeneric 3. Added 'type' property declaration in SectionGeneric.qml with default value NetType.WiredItem Log: Fixed network proxy settings not updating when connection method changes Influence: 1. Test network proxy settings page to ensure method changes are properly reflected 2. Verify that different network types (wired/wireless) display correct configuration options 3. Test editing network settings to ensure all properties are properly passed between components 4. Verify that proxy method changes trigger appropriate UI updates fix: 修复代理方法变更处理并添加类型属性 1. 修复 PageSystemProxy.qml 中 Connections 目标从 'item' 改为 'netItem',以正确处理方法变更 2. 在 PageSettings.qml 中添加 'type' 属性绑定,将网络类型传递给 SectionGeneric 3. 在 SectionGeneric.qml 中添加 'type' 属性声明,默认值为 NetType.WiredItem Log: 修复网络代理设置在连接方法变更时无法正确更新的问题 Influence: 1. 测试网络代理设置页面,确保方法变更能正确反映 2. 验证不同网络类型(有线/无线)显示正确的配置选项 3. 测试编辑网络设置,确保所有属性在组件间正确传递 4. 验证代理方法变更能触发适当的UI更新
1 parent ba502cf commit 11ed2b0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

dcc-network/qml/PageSettings.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
22
// SPDX-License-Identifier: GPL-3.0-or-later
33
import QtQuick 2.15
44
import QtQuick.Layouts 1.15
@@ -40,6 +40,7 @@ DccObject {
4040
id: sectionGeneric
4141
parentName: root.parentUrl + "/body"
4242
weight: 100
43+
type: root.type
4344
onEditClicked: modified = true
4445
}
4546
SectionSecret {

dcc-network/qml/PageSystemProxy.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
22
// SPDX-License-Identifier: GPL-3.0-or-later
33
import QtQuick 2.15
44
import QtQuick.Controls 2.15
@@ -83,7 +83,7 @@ DccObject {
8383
}
8484
}
8585
Connections {
86-
target: item
86+
target: netItem
8787
function onMethodChanged(m) {
8888
method = m
8989
}

dcc-network/qml/SectionGeneric.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
22
// SPDX-License-Identifier: GPL-3.0-or-later
33
import QtQuick 2.15
44
import QtQuick.Controls 2.15
@@ -13,6 +13,7 @@ DccTitleObject {
1313
property var config: new Object()
1414
property string settingsID: ""
1515
property var band
16+
property int type: NetType.WiredItem
1617

1718
property string errorKey: ""
1819
signal editClicked

0 commit comments

Comments
 (0)