10 namespace swift::misc::simulation::settings
17 m_emulatedSimulator = simulator;
23 static const QString ms(
"Emulated simulator: %1, default model: '%2', log.function calls: %3");
30 if (index.
isMyself()) {
return QVariant::fromValue(*
this); }
35 case IndexOwnModel:
return QVariant::fromValue(m_ownModel);
36 case IndexDefaultModel:
return QVariant::fromValue(m_defaultModel);
37 case IndexLoggingFunctionCalls:
return QVariant::fromValue(m_logFunctionCalls);
52 case IndexEmulatedSimulator:
57 case IndexLoggingFunctionCalls: this->m_logFunctionCalls = variant.toBool();
break;
Non-owning reference to a CPropertyIndex with a subset of its features.
Q_REQUIRED_RESULT CPropertyIndexRef copyFrontRemoved() const
Copy with first element removed.
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 toQString(bool i18n=false) const
Cast as QString.
void setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
Set property by index.
QString getModelStringAndDbKey() const
Model string and DB key (if available)
Simple hardcoded info about the corresponding simulator.
bool isSingleSimulator() const
Single simulator selected.
QVariant propertyByIndex(CPropertyIndexRef index) const
Property by index.
QString convertToQString(bool i18n=false) const
Cast as QString.
void setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
Set property by index.
CSwiftPluginSettings()
Default constructor.
void setEmulatedSimulator(const CSimulatorInfo &simulator)
Emulated simualtor.
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.