fix: 修复QML不识别qint64类型的问题

- 将Q_PROPERTY类型从qint64改为double
- 将QML属性类型从qint64改为real
- 修复插件无法加载的问题
This commit is contained in:
2026-07-18 11:32:46 +08:00
parent 6c51fa3d0b
commit b90927915f
4 changed files with 98 additions and 20 deletions
+4 -4
View File
@@ -21,10 +21,10 @@ AppletItem {
readonly property var applet: Applet
readonly property bool ready: applet ? applet.ready : false
readonly property qint64 downloadSpeed: applet ? applet.downloadSpeed : 0
readonly property qint64 uploadSpeed: applet ? applet.uploadSpeed : 0
readonly property qint64 totalDownload: applet ? applet.totalDownload : 0
readonly property qint64 totalUpload: applet ? applet.totalUpload : 0
readonly property real downloadSpeed: applet ? applet.downloadSpeed : 0
readonly property real uploadSpeed: applet ? applet.uploadSpeed : 0
readonly property real totalDownload: applet ? applet.totalDownload : 0
readonly property real totalUpload: applet ? applet.totalUpload : 0
readonly property string activeInterface: applet ? (applet.activeInterface || "") : ""
readonly property var networkInterfaces: applet ? (applet.networkInterfaces || []) : []
readonly property var interfaceStats: applet ? (applet.interfaceStats || []) : []