refactor: 删除interfaceStats死代码

删除未使用的 Q_PROPERTY interfaceStats、interfaceStats() 实现、
statsChanged 信号、QML 属性绑定。#14 随之解决(interfaceStats
整体删除,不再有不完整输出)。
This commit is contained in:
2026-07-24 11:04:59 +08:00
parent 110032f3c9
commit 35dc998448
4 changed files with 6 additions and 26 deletions
-1
View File
@@ -40,7 +40,6 @@ AppletItem {
// 活动接口的 IPv6 全球地址,由 C++ 后端 detectIpAddress 持续更新
readonly property string ipv6Address: applet ? (applet.ipv6Address || "") : ""
readonly property var networkInterfaces: applet ? (applet.networkInterfaces || []) : []
readonly property var interfaceStats: applet ? (applet.interfaceStats || []) : []
// 公共颜色与格式化函数:集中定义于 components/NetCommon.qml(随 import "components" 引入),
// 与 NetworkPopup、TrafficChartWindow 共享同一份实现,消除跨组件重复定义