summaryrefslogtreecommitdiff
path: root/quacker/letterbox.h
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2020-06-17 23:52:03 -0500
committerJohn Fultz <jfultz@wolfram.com>2020-06-17 23:52:03 -0500
commitb7413384aafca679584df1e5e18dd7e6282ff4f3 (patch)
tree65e5e434fc0dcc7e2dc51520a659219a575bbc68 /quacker/letterbox.h
parent61aa7d337a045759e06803c89b5f364ca4ed26b1 (diff)
Xcode compiler warnings.
* Replace std::random_shuffle() with std::shuffle(). * Populate switch statements which were checking the Move enums, but not Move::PlaceError. * endl -> Qt::endl for QTextStream usage. * QString::SkipEmptyParts -> Qt::SkipEmptyParts * QLabel::pixmap() now takes Qt::ReturnByValue * Use QElapsedTimer where appropriate.
Diffstat (limited to 'quacker/letterbox.h')
-rw-r--r--quacker/letterbox.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/quacker/letterbox.h b/quacker/letterbox.h
index 8aa171d..c340f1d 100644
--- a/quacker/letterbox.h
+++ b/quacker/letterbox.h
@@ -19,6 +19,7 @@
#ifndef QUACKER_LETTERBOX_H
#define QUACKER_LETTERBOX_H
+#include <QElapsedTimer>
#include <QMainWindow>
#include <QValidator>
#include <QTextEdit>
@@ -204,8 +205,8 @@ private:
ListerDialog *m_listerDialog;
QTimer *m_timer;
- QTime m_time;
- QTime m_pauseTime;
+ QElapsedTimer m_time;
+ QElapsedTimer m_pauseTime;
int m_pauseMs;
int m_keystrokes;