10 namespace swift::misc::simulation::settings
17 return QStringLiteral(
"Allow exclude: %1").arg(
boolToYesNo(this->m_allowExcludeModels));
22 if (index.
isMyself()) {
return QVariant::fromValue(*
this); }
26 case IndexAllowExclude:
return QVariant::fromValue(this->m_allowExcludeModels);
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.
ColumnIndex
Base class enums.
void setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
Set property by index.
QVariant propertyByIndex(CPropertyIndexRef index) const
Property by index.
QString convertToQString(bool i18n=false) const
Cast as QString.
void setAllowExcludedModels(bool allow)
Allow excluded models?
QVariant propertyByIndex(CPropertyIndexRef index) const
Property by index.
CModelSettings()
Default constructor.
void setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
Set property by index.
SWIFT_MISC_EXPORT const QString & boolToYesNo(bool v)
Bool to yes/no.
#define SWIFT_DEFINE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template definition of mixins for a CValueObject subclass.