mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 04:22:09 +08:00
cabana: DoubleValidator fix locale (#27129)
old-commit-hash: 68c0012bf62bcbe9a273d8d4caca0c1ce0d8e9bb
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
|
||||
SignalForm::SignalForm(QWidget *parent) : QWidget(parent) {
|
||||
auto double_validator = new QDoubleValidator(this);
|
||||
double_validator->setLocale(QLocale::C); // Match locale of QString::toDouble() instead of system
|
||||
|
||||
QVBoxLayout *main_layout = new QVBoxLayout(this);
|
||||
QFormLayout *form_layout = new QFormLayout();
|
||||
main_layout->addLayout(form_layout);
|
||||
|
||||
Reference in New Issue
Block a user