diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-01-12 12:24:17 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-01-12 12:24:17 +0200 |
commit | 51250b0906e56b39488304208ad119c951b4ae7d (patch) | |
tree | bd493354400df13f32ec2085181cb50129468630 /src | |
parent | f3bdc143b67e8a5e763071a0774f6d994ca35c57 (diff) | |
download | bitcoin-51250b0906e56b39488304208ad119c951b4ae7d.tar.xz |
refactor, qt: Use std::chrono for input_filter_delay constant
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/transactionview.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index 6f6e40fcf7..1ab1333b72 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -19,6 +19,7 @@ #include <node/ui_interface.h> +#include <chrono> #include <optional> #include <QApplication> @@ -114,8 +115,8 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa amountWidget->setValidator(amountValidator); hlayout->addWidget(amountWidget); - // Delay before filtering transactions in ms - static const int input_filter_delay = 200; + // Delay before filtering transactions + static constexpr auto input_filter_delay{200ms}; QTimer* amount_typing_delay = new QTimer(this); amount_typing_delay->setSingleShot(true); |