diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-01-06 18:35:53 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-01-09 17:54:03 +0200 |
commit | 0e193deb523a4fa04e0ee69bd66f917895802ac9 (patch) | |
tree | 7245dcec1d18617946181a6ab80dd4c5ed5dc332 /src/qt/optionsdialog.cpp | |
parent | 6f0da958116ecc0e06332fad2f490e37b6884166 (diff) | |
download | bitcoin-0e193deb523a4fa04e0ee69bd66f917895802ac9.tar.xz |
refactor, qt: Use std::chrono for non-zero arguments in QTimer methods
Diffstat (limited to 'src/qt/optionsdialog.cpp')
-rw-r--r-- | src/qt/optionsdialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp index 177f45cb7b..c05571677c 100644 --- a/src/qt/optionsdialog.cpp +++ b/src/qt/optionsdialog.cpp @@ -19,6 +19,8 @@ #include <netbase.h> #include <txdb.h> // for -dbcache defaults +#include <chrono> + #include <QDataWidgetMapper> #include <QDir> #include <QIntValidator> @@ -362,7 +364,7 @@ void OptionsDialog::showRestartWarning(bool fPersistent) ui->statusLabel->setText(tr("This change would require a client restart.")); // clear non-persistent status label after 10 seconds // Todo: should perhaps be a class attribute, if we extend the use of statusLabel - QTimer::singleShot(10000, this, &OptionsDialog::clearStatusLabel); + QTimer::singleShot(10s, this, &OptionsDialog::clearStatusLabel); } } |