mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
refs #304, centralized icons
* icons which can be rotated * provide metadata * integrated in CValueObjects * added SVG support
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "avaircraft.h"
|
||||
#include "blackmisc/blackmiscfreefunctions.h"
|
||||
#include "blackmisc/pqconstants.h"
|
||||
#include "blackmisc/icon.h"
|
||||
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
|
||||
@@ -207,8 +208,8 @@ namespace BlackMisc
|
||||
{
|
||||
case IndexCallsign:
|
||||
return QVariant::fromValue(this->m_callsign);
|
||||
case IndexIcon:
|
||||
return QVariant(this->m_callsign.toIcon());
|
||||
case IndexPixmap:
|
||||
return QVariant(this->m_callsign.toPixmap());
|
||||
case IndexCallsignAsString:
|
||||
return QVariant::fromValue(this->m_callsign.toQString(true));
|
||||
case IndexCallsignAsStringAsSet:
|
||||
@@ -348,6 +349,5 @@ namespace BlackMisc
|
||||
return TupleConverter<CAircraft>::jsonMembers();
|
||||
}
|
||||
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user