diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-03-06 15:01:54 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-07 00:01:54 +0300 |
| commit | 2cbb5c95ef276f14759e41af22c8363d7afb0194 (patch) | |
| tree | 1427e9eabad63cec6ed3ce46bc1c739bacc0907b /include | |
| parent | 08fd15acda49bef91c02bdf3a8744db597494d10 (diff) | |
Fix timer using 32-bit ints instead of 64-bit ints (#487)
Diffstat (limited to 'include')
| -rw-r--r-- | include/aoclocklabel.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 <QLabel> #include <QBasicTimer> #include <QTimerEvent> -#include <QTime> +#include <QDateTime> #include <QDebug> 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 |
