summaryrefslogtreecommitdiffhomepage
path: root/tracker-hatire/ftnoir_tracker_hat_dialog.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-12-29 06:12:21 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-12-29 06:12:21 +0100
commitc537acf6d7ebff26db9d5981d33d05fe7101baf6 (patch)
tree4e4c779ab55a04a465aa66fa22fe8771683d6d52 /tracker-hatire/ftnoir_tracker_hat_dialog.cpp
parent7b4d9859006ac8de87d70edd18278b3b9dfa065a (diff)
tracker/hatire: fix deprecated QTime api
Diffstat (limited to 'tracker-hatire/ftnoir_tracker_hat_dialog.cpp')
-rw-r--r--tracker-hatire/ftnoir_tracker_hat_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-hatire/ftnoir_tracker_hat_dialog.cpp b/tracker-hatire/ftnoir_tracker_hat_dialog.cpp
index 491d1214..7cb25d18 100644
--- a/tracker-hatire/ftnoir_tracker_hat_dialog.cpp
+++ b/tracker-hatire/ftnoir_tracker_hat_dialog.cpp
@@ -177,8 +177,8 @@ void dialog_hatire::poll_tracker_info()
int frame_cnt;
theTracker->get_info(&frame_cnt);
- ui.lab_vtps->setText(QString::number(frame_cnt*(1000/last_time.elapsed())));
- last_time.restart();
+ ui.lab_vtps->setText(QString::number(frame_cnt*(1000/last_time.elapsed_ms())));
+ last_time.start();
}
}