mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #304, centralized icons
* icons which can be rotated * provide metadata * integrated in CValueObjects * added SVG support
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include "avflightplan.h"
|
||||
#include "iconlist.h"
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
@@ -98,6 +99,11 @@ namespace BlackMisc
|
||||
BlackMisc::deserializeJson(json, CFlightPlan::jsonMembers(), TupleConverter<CFlightPlan>::toTuple(*this));
|
||||
}
|
||||
|
||||
BlackMisc::CIcon CFlightPlan::toIcon() const
|
||||
{
|
||||
return BlackMisc::CIconList::iconForIndex(CIcons::StandardIconAppFlightPlan16);
|
||||
}
|
||||
|
||||
void CFlightPlan::registerMetadata()
|
||||
{
|
||||
qRegisterMetaType<CFlightPlan>();
|
||||
|
||||
Reference in New Issue
Block a user