Skip to content

Commit 51250b0

Browse files
committed
refactor, qt: Use std::chrono for input_filter_delay constant
1 parent f3bdc14 commit 51250b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/qt/transactionview.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include <node/ui_interface.h>
2121

22+
#include <chrono>
2223
#include <optional>
2324

2425
#include <QApplication>
@@ -114,8 +115,8 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
114115
amountWidget->setValidator(amountValidator);
115116
hlayout->addWidget(amountWidget);
116117

117-
// Delay before filtering transactions in ms
118-
static const int input_filter_delay = 200;
118+
// Delay before filtering transactions
119+
static constexpr auto input_filter_delay{200ms};
119120

120121
QTimer* amount_typing_delay = new QTimer(this);
121122
amount_typing_delay->setSingleShot(true);

0 commit comments

Comments
 (0)