mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Prepared for only A-Z/0-9 callsign entry
This commit is contained in:
@@ -122,8 +122,12 @@ namespace BlackGui
|
||||
// So I use no ranges in the CUpperCaseValidators, as this disables the signals for invalid values
|
||||
|
||||
// own aircraft
|
||||
ui->le_Callsign->setMaxLength(LogoffIntervalSeconds);
|
||||
ui->le_Callsign->setValidator(new CUpperCaseValidator(this));
|
||||
constexpr int MaxLength = 10;
|
||||
constexpr int MinLength = 0;
|
||||
CUpperCaseValidator *ucv = new CUpperCaseValidator(MinLength, MaxLength, ui->le_Callsign);
|
||||
// ucv->setAllowedCharacters09AZ();
|
||||
ui->le_Callsign->setMaxLength(MaxLength);
|
||||
ui->le_Callsign->setValidator(ucv);
|
||||
connect(ui->le_Callsign, &QLineEdit::editingFinished, this, &CLoginComponent::validateAircraftValues);
|
||||
|
||||
ui->le_AircraftCombinedType->setMaxLength(3);
|
||||
|
||||
Reference in New Issue
Block a user