mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
refs #335, SELCAL tweaks discovered during refactoring
* better case handling in SELCAL * SELCAL in aircraft * SELCAL selector, improved getter / setters * changed cockpit SELCAL elements to promoted GUI element * synchronized flightplan and cockpit SELCAL codes, used new signal/slot syntacs in flightplan * added SELCAL in own aircraft context
This commit is contained in:
committed by
Roland Winklmeier
parent
dd587207fe
commit
0c6f5f1777
@@ -31,13 +31,13 @@ namespace BlackMisc
|
||||
CSelcal() = default;
|
||||
|
||||
//! Constructor.
|
||||
CSelcal(const QString &code) : m_code(code.trimmed()) {}
|
||||
CSelcal(const QString &code) : m_code(code.trimmed().toUpper()) {}
|
||||
|
||||
/*!
|
||||
* Constructor.
|
||||
* Needed to disambiguate implicit conversion from string literal.
|
||||
*/
|
||||
CSelcal(const char *code) : m_code(code) {}
|
||||
CSelcal(const char *code) : m_code(QString(code).trimmed().toUpper()) {}
|
||||
|
||||
//! Is valid?
|
||||
bool isValid() const { return isValidCode(this->m_code); }
|
||||
|
||||
Reference in New Issue
Block a user