From 2cbb5c95ef276f14759e41af22c8363d7afb0194 Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Sat, 6 Mar 2021 15:01:54 -0600 Subject: Fix timer using 32-bit ints instead of 64-bit ints (#487) --- include/aoclocklabel.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/aoclocklabel.h b/include/aoclocklabel.h index b5d07945..472ce68c 100644 --- a/include/aoclocklabel.h +++ b/include/aoclocklabel.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include class AOClockLabel : public QLabel { @@ -13,8 +13,8 @@ class AOClockLabel : public QLabel { public: AOClockLabel(QWidget *parent); void start(); - void start(int msecs); - void set(int msecs, bool update_text = false); + void start(qint64 msecs); + void set(qint64 msecs, bool update_text = false); void pause(); void stop(); @@ -23,7 +23,7 @@ protected: private: QBasicTimer timer; - QTime target_time; + QDateTime target_time; }; #endif // AOCLOCKLABEL_H -- cgit