We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7d89d commit 6e4acdeCopy full SHA for 6e4acde
src/TaoQuick/Qml/Misc/CusFPS.qml
@@ -1,10 +1,13 @@
1
-import QtQuick 2.9
2
-import QtQuick.Controls 2.2
+import QtQml
+import QtQuick
3
+import QtQuick.Controls
4
+import QtQuick.Controls.Basic
5
+
6
import "../.."
7
Item {
8
property int fps: 60
9
- property int frameCount: 0
10
+ property int frameNum: 0
11
property color textColor: "#f7e08c"
12
implicitWidth: 100
13
implicitHeight: 36
@@ -22,7 +25,7 @@ Item {
22
25
loops: Animation.Infinite
23
26
duration: 1000
24
27
}
- onRotationChanged: frameCount++
28
+ onRotationChanged: frameNum++
29
30
BasicText {
31
anchors.left: spinner.right
@@ -39,8 +42,8 @@ Item {
39
42
repeat: true
40
43
running: true
41
44
onTriggered: {
- fps = frameCount
- frameCount = 0
45
+ fps = frameNum
46
+ frameNum = 0
47
48
49
0 commit comments