Skip to content

Commit

Permalink
改名避免冲突
Browse files Browse the repository at this point in the history
  • Loading branch information
jared2020 committed Dec 4, 2024
1 parent 2a7d89d commit 6e4acde
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/TaoQuick/Qml/Misc/CusFPS.qml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQml
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Basic

import "../.."
Item {
property int fps: 60

property int frameCount: 0
property int frameNum: 0
property color textColor: "#f7e08c"
implicitWidth: 100
implicitHeight: 36
Expand All @@ -22,7 +25,7 @@ Item {
loops: Animation.Infinite
duration: 1000
}
onRotationChanged: frameCount++
onRotationChanged: frameNum++
}
BasicText {
anchors.left: spinner.right
Expand All @@ -39,8 +42,8 @@ Item {
repeat: true
running: true
onTriggered: {
fps = frameCount
frameCount = 0
fps = frameNum
frameNum = 0
}
}
}

0 comments on commit 6e4acde

Please sign in to comment.