refs #734, allow to set temp.livery

This commit is contained in:
Klaus Basan
2016-08-22 21:48:15 +02:00
committed by Mathew Sutcliffe
parent 4e381a048f
commit f1cd73a268
6 changed files with 71 additions and 40 deletions

View File

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

View File

@@ -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,

View File

@@ -23,7 +23,6 @@ namespace BlackMisc
{
namespace Aviation
{
CLiveryList::CLiveryList() { }
CLiveryList::CLiveryList(const CSequence<CLivery> &other) :