12 using namespace swift::misc::physical_quantities;
17 namespace swift::gui::settings
19 void CViewUpdateSettings::reset()
27 bool CViewUpdateSettings::isValid()
const
31 return this->m_updateAircraft >= min && this->m_updateAtc >= min && this->m_updateRendering >= min &&
32 this->m_updateUser >= min;
35 QString CViewUpdateSettings::convertToQString(
bool i18n)
const
38 const QString s(
"Atc: %1 Aircraft: %2 User: %3 Rendering %4");
70 case IndexAircraft: this->m_updateAircraft = variant.
value<
CTime>();
break;
71 case IndexAtc: this->m_updateAtc = variant.
value<
CTime>();
break;
72 case IndexRendering: this->m_updateRendering = variant.
value<
CTime>();
break;
73 case IndexUser: this->m_updateUser = variant.
value<
CTime>();
break;
Settings about view update rates.
ColumnIndex
Properties by index.
Non-owning reference to a CPropertyIndex with a subset of its features.
CastType frontCasted() const
First element casted to given type, usually the PropertIndex enum.
bool isMyself() const
Myself index, used with nesting.
void setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
Set property by index.
QVariant propertyByIndex(CPropertyIndexRef index) const
Property by index.
static CTimeUnit s()
Second s.
Free functions in swift::misc.
QString arg(Args &&... args) const const
QVariant fromValue(T &&value)
#define SWIFT_DEFINE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template definition of mixins for a CValueObject subclass.