mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-13 17:02:06 +08:00
cabana: reject group separator in QDoubleValidator (#28250)
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