mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
refs #734, allow to set temp.livery
This commit is contained in:
committed by
Mathew Sutcliffe
parent
4e381a048f
commit
f1cd73a268
@@ -236,6 +236,12 @@ namespace BlackMisc
|
||||
return s;
|
||||
}
|
||||
|
||||
const QString &CLivery::tempLiveryCode()
|
||||
{
|
||||
static const QString temp("_CC_NOCOLOR");
|
||||
return temp;
|
||||
}
|
||||
|
||||
CVariant CLivery::propertyByIndex(const BlackMisc::CPropertyIndex &index) const
|
||||
{
|
||||
if (index.isMyself()) { return CVariant::from(*this); }
|
||||
|
||||
@@ -173,13 +173,16 @@ namespace BlackMisc
|
||||
//! Color livery marker
|
||||
static const QString &colorLiveryMarker();
|
||||
|
||||
//! The code for a temporary livery
|
||||
static const QString &tempLiveryCode();
|
||||
|
||||
private:
|
||||
CAirlineIcaoCode m_airline; //!< corresponding airline, if any
|
||||
QString m_combinedCode; //!< livery code and pseudo airline ICAO code
|
||||
QString m_description; //!< describes the livery
|
||||
BlackMisc::CRgbColor m_colorFuselage; //! color of fuselage
|
||||
BlackMisc::CRgbColor m_colorTail; //! color of tail
|
||||
bool m_military = false; //! Military livery?
|
||||
BlackMisc::CRgbColor m_colorFuselage; //!< color of fuselage
|
||||
BlackMisc::CRgbColor m_colorTail; //!< color of tail
|
||||
bool m_military = false; //!< military livery?
|
||||
|
||||
BLACK_METACLASS(
|
||||
CLivery,
|
||||
|
||||
@@ -23,7 +23,6 @@ namespace BlackMisc
|
||||
{
|
||||
namespace Aviation
|
||||
{
|
||||
|
||||
CLiveryList::CLiveryList() { }
|
||||
|
||||
CLiveryList::CLiveryList(const CSequence<CLivery> &other) :
|
||||
|
||||
Reference in New Issue
Block a user