mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
Merge #14177: qt: Set C locale for amountWidget
b0510d78ae
Set C locale for amountWidget (Hennadii Stepanov)
Pull request description:
Fix #13873
Tree-SHA512: ef26b35ef83c3a87ebd90650f6d833b00a24f6c114b68fe01acd4a14d1f5bdec066f438eb7781c1e55c32640838c54e00b8f082c390639ade8d9a58830833d4a
This commit is contained in:
commit
32c5f188d4
@ -106,7 +106,11 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
|
||||
} else {
|
||||
amountWidget->setFixedWidth(100);
|
||||
}
|
||||
amountWidget->setValidator(new QDoubleValidator(0, 1e20, 8, this));
|
||||
QDoubleValidator *amountValidator = new QDoubleValidator(0, 1e20, 8, this);
|
||||
QLocale amountLocale(QLocale::C);
|
||||
amountLocale.setNumberOptions(QLocale::RejectGroupSeparator);
|
||||
amountValidator->setLocale(amountLocale);
|
||||
amountWidget->setValidator(amountValidator);
|
||||
hlayout->addWidget(amountWidget);
|
||||
|
||||
// Delay before filtering transactions in ms
|
||||
|
Loading…
Reference in New Issue
Block a user