refactor, qt: Use std::chrono for input_filter_delay constant
This commit is contained in:
1 file changed
+3
-2
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include <node/ui_interface.h>
|
#include <node/ui_interface.h>
|
||||||
|
|
||||||
|
#include <chrono>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
@@ -114,8 +115,8 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
|
|||||||
amountWidget->setValidator(amountValidator);
|
amountWidget->setValidator(amountValidator);
|
||||||
hlayout->addWidget(amountWidget);
|
hlayout->addWidget(amountWidget);
|
||||||
|
|
||||||
// Delay before filtering transactions in ms
|
// Delay before filtering transactions
|
||||||
static const int input_filter_delay = 200;
|
static constexpr auto input_filter_delay{200ms};
|
||||||
|
|
||||||
QTimer* amount_typing_delay = new QTimer(this);
|
QTimer* amount_typing_delay = new QTimer(this);
|
||||||
amount_typing_delay->setSingleShot(true);
|
amount_typing_delay->setSingleShot(true);
|
||||||
|
|||||||
Reference in new issue
Block a user