mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Ref T26, Ref T27, utility functions in "value object" classes
This commit is contained in:
@@ -26,6 +26,16 @@ namespace BlackMisc
|
||||
CCollection<CCallsign>(other)
|
||||
{ }
|
||||
|
||||
QStringList CCallsignSet::getCallsignStrings() const
|
||||
{
|
||||
QStringList callsigns;
|
||||
for (const CCallsign &cs : *this)
|
||||
{
|
||||
callsigns.push_back(cs.asString());
|
||||
}
|
||||
return callsigns;
|
||||
}
|
||||
|
||||
void CCallsignSet::registerMetadata()
|
||||
{
|
||||
qRegisterMetaType<BlackMisc::CSequence<CCallsign>>();
|
||||
|
||||
Reference in New Issue
Block a user