mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 21:42:05 +08:00
cabana: reject group separator in QDoubleValidator (#28250)
old-commit-hash: 9ac73b719fe0c7bb6f3dd23514b2c837a3bd17ae
This commit is contained in:
@@ -284,8 +284,12 @@ void SignalModel::handleSignalRemoved(const cabana::Signal *sig) {
|
||||
|
||||
SignalItemDelegate::SignalItemDelegate(QObject *parent) : QStyledItemDelegate(parent) {
|
||||
name_validator = new NameValidator(this);
|
||||
|
||||
QLocale locale(QLocale::C);
|
||||
locale.setNumberOptions(QLocale::RejectGroupSeparator);
|
||||
double_validator = new QDoubleValidator(this);
|
||||
double_validator->setLocale(QLocale::C); // Match locale of QString::toDouble() instead of system
|
||||
double_validator->setLocale(locale); // Match locale of QString::toDouble() instead of system
|
||||
|
||||
label_font.setPointSize(8);
|
||||
minmax_font.setPixelSize(10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user