Skip to content

Commit 6e4acde

Browse files
committed
改名避免冲突
1 parent 2a7d89d commit 6e4acde

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/TaoQuick/Qml/Misc/CusFPS.qml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
import QtQuick 2.9
2-
import QtQuick.Controls 2.2
1+
import QtQml
2+
import QtQuick
3+
import QtQuick.Controls
4+
import QtQuick.Controls.Basic
5+
36
import "../.."
47
Item {
58
property int fps: 60
69

7-
property int frameCount: 0
10+
property int frameNum: 0
811
property color textColor: "#f7e08c"
912
implicitWidth: 100
1013
implicitHeight: 36
@@ -22,7 +25,7 @@ Item {
2225
loops: Animation.Infinite
2326
duration: 1000
2427
}
25-
onRotationChanged: frameCount++
28+
onRotationChanged: frameNum++
2629
}
2730
BasicText {
2831
anchors.left: spinner.right
@@ -39,8 +42,8 @@ Item {
3942
repeat: true
4043
running: true
4144
onTriggered: {
42-
fps = frameCount
43-
frameCount = 0
45+
fps = frameNum
46+
frameNum = 0
4447
}
4548
}
4649
}

0 commit comments

Comments
 (0)