mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
refactor, qt: Use std::chrono for input_filter_delay constant
This commit is contained in:
parent
f3bdc143b6
commit
51250b0906
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue