mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
Ref T637, allow 3 letter ICAOs in FP
* strict or lenient airport check * allow to enter 3 letter ICAO codes in FP
This commit is contained in:
@@ -41,7 +41,7 @@ namespace BlackMisc
|
||||
bool isEmpty() const { return this->m_icaoCode.isEmpty(); }
|
||||
|
||||
//! Has valid code?
|
||||
bool hasValidIcaoCode() const;
|
||||
bool hasValidIcaoCode(bool strict) const;
|
||||
|
||||
//! Get code.
|
||||
const QString &asString() const { return this->m_icaoCode; }
|
||||
@@ -56,7 +56,7 @@ namespace BlackMisc
|
||||
static QString unifyAirportCode(const QString &icaoCode);
|
||||
|
||||
//! Valid ICAO designator
|
||||
static bool isValidIcaoDesignator(const QString &icaoCode);
|
||||
static bool isValidIcaoDesignator(const QString &icaoCode, bool strict);
|
||||
|
||||
//! Containing numbers (normally indicator for small airfield/strip)
|
||||
static bool containsNumbers(const QString &icaoCode);
|
||||
@@ -73,6 +73,9 @@ namespace BlackMisc
|
||||
//! \copydoc BlackMisc::Mixin::Index::comparePropertyByIndex
|
||||
int comparePropertyByIndex(const CPropertyIndex &index, const CAirportIcaoCode &compareValue) const;
|
||||
|
||||
//! Valid code lenght
|
||||
static bool validCodeLength(int l, bool strict);
|
||||
|
||||
private:
|
||||
QString m_icaoCode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user