mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 02:06:08 +08:00
Ref T335, misc. improvements of value classes/list
- verifyModelData - setModelType - getCallsignsAsString
This commit is contained in:
@@ -48,6 +48,12 @@ namespace BlackMisc
|
||||
return callsigns;
|
||||
}
|
||||
|
||||
QString CCallsignSet::getCallsignsAsString(bool sorted, const QString &separator) const
|
||||
{
|
||||
if (this->isEmpty()) { return QStringLiteral(""); }
|
||||
return this->getCallsignStrings(sorted).join(separator);
|
||||
}
|
||||
|
||||
void CCallsignSet::registerMetadata()
|
||||
{
|
||||
qRegisterMetaType<BlackMisc::CSequence<CCallsign>>();
|
||||
|
||||
@@ -47,6 +47,9 @@ namespace BlackMisc
|
||||
//! The callsign strings
|
||||
QStringList getCallsignStrings(bool sorted = false) const;
|
||||
|
||||
//! Callsigns as string
|
||||
QString getCallsignsAsString(bool sorted = false, const QString &separator = ", ") const;
|
||||
|
||||
//! Register metadata
|
||||
static void registerMetadata();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user