Ref T335, misc. improvements of value classes/list

- verifyModelData
- setModelType
- getCallsignsAsString
This commit is contained in:
Klaus Basan
2018-09-12 16:18:56 +02:00
parent 7d715a909e
commit c675ef5c32
8 changed files with 61 additions and 4 deletions

View File

@@ -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>>();