fix: 修复QML不识别qint64类型的问题
- 将Q_PROPERTY类型从qint64改为double - 将QML属性类型从qint64改为real - 修复插件无法加载的问题
This commit is contained in:
@@ -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 || []) : []
|
||||
|
||||
Reference in New Issue
Block a user