diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-01-06 18:30:58 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-01-09 17:51:27 +0200 |
commit | 6f0da958116ecc0e06332fad2f490e37b6884166 (patch) | |
tree | 5908ce971dabc21c7bda38d33b10e00823f1ac6f /src/qt/test/util.h | |
parent | 33d520ac538fcd6285fd958578f1bd26295592e4 (diff) | |
download | bitcoin-6f0da958116ecc0e06332fad2f490e37b6884166.tar.xz |
refactor, qt: Use std::chrono in ConfirmMessage parameter
Diffstat (limited to 'src/qt/test/util.h')
-rw-r--r-- | src/qt/test/util.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/qt/test/util.h b/src/qt/test/util.h index df5931a032..f50a6b6c61 100644 --- a/src/qt/test/util.h +++ b/src/qt/test/util.h @@ -5,7 +5,11 @@ #ifndef BITCOIN_QT_TEST_UTIL_H #define BITCOIN_QT_TEST_UTIL_H -#include <QString> +#include <chrono> + +QT_BEGIN_NAMESPACE +class QString; +QT_END_NAMESPACE /** * Press "Ok" button in message box dialog. @@ -13,6 +17,6 @@ * @param text - Optionally store dialog text. * @param msec - Number of milliseconds to pause before triggering the callback. */ -void ConfirmMessage(QString* text = nullptr, int msec = 0); +void ConfirmMessage(QString* text, std::chrono::milliseconds msec); #endif // BITCOIN_QT_TEST_UTIL_H |