diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-12-29 06:12:21 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-12-29 06:12:21 +0100 |
commit | c537acf6d7ebff26db9d5981d33d05fe7101baf6 (patch) | |
tree | 4e4c779ab55a04a465aa66fa22fe8771683d6d52 | |
parent | 7b4d9859006ac8de87d70edd18278b3b9dfa065a (diff) |
tracker/hatire: fix deprecated QTime api
-rw-r--r-- | tracker-hatire/ftnoir_tracker_hat_dialog.cpp | 4 | ||||
-rw-r--r-- | tracker-hatire/ftnoir_tracker_hat_dialog.h | 4 |
2 files changed, 4 insertions, 4 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(); } } diff --git a/tracker-hatire/ftnoir_tracker_hat_dialog.h b/tracker-hatire/ftnoir_tracker_hat_dialog.h index 7577445c..c578f22f 100644 --- a/tracker-hatire/ftnoir_tracker_hat_dialog.h +++ b/tracker-hatire/ftnoir_tracker_hat_dialog.h @@ -1,12 +1,12 @@ #pragma once #include "api/plugin-api.hpp" +#include "compat/timer.hpp" #include "ftnoir_tracker_hat_settings.h" #include "ftnoir_tracker_hat.h" #include "ui_ftnoir_hatcontrols.h" #include <QObject> #include <QWidget> -#include <QTime> #include <QTimer> #include <QMessageBox> #include <QMetaType> @@ -25,7 +25,7 @@ public: private: Ui::UIHATControls ui; hatire *theTracker; - QTime last_time; + Timer last_time; public slots: void WriteMsgInfo(const QByteArray &MsgInfo); |