Remove restriction of grid locator to 4 or 6 chars. Upped to 16 chars
This commit is contained in:
parent
b7d2a370f8
commit
726484a05a
@ -1017,7 +1017,7 @@ Configuration::impl::impl (Configuration * self, QDir const& temp_directory,
|
||||
// validation
|
||||
//
|
||||
ui_->callsign_line_edit->setValidator (new CallsignValidator {this});
|
||||
ui_->grid_line_edit->setValidator (new MaidenheadLocatorValidator {this});
|
||||
ui_->grid_line_edit->setValidator (new MaidenheadLocatorValidator {this, MaidenheadLocatorValidator::Length::doubleextended});
|
||||
ui_->add_macro_line_edit->setValidator (new QRegExpValidator {message_alphabet, this});
|
||||
ui_->station_message_line_edit->setValidator (new QRegExpValidator {message_alphabet, this});
|
||||
ui_->qth_message_line_edit->setValidator (new QRegExpValidator {message_alphabet, this});
|
||||
|
@ -80,7 +80,7 @@
|
||||
<string><html><head/><body><p>4-digit Maidenhead Locator</p></body></html></string>
|
||||
</property>
|
||||
<property name="maxLength">
|
||||
<number>4</number>
|
||||
<number>16</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -11,7 +11,7 @@ class MaidenheadLocatorValidator final
|
||||
: public QValidator
|
||||
{
|
||||
public:
|
||||
enum class Length {field = 2, square = 4, subsquare = 6, extended = 8};
|
||||
enum class Length {field = 2, square = 4, subsquare = 6, extended = 8, doubleextended = 16};
|
||||
MaidenheadLocatorValidator (QObject * parent = nullptr
|
||||
, Length length = Length::subsquare
|
||||
, Length required = Length::square);
|
||||
|
Loading…
Reference in New Issue
Block a user