14 QString CLauncherSetup::convertToQString(
bool i18n)
const
17 return QStringLiteral(
"DBus: %1 frameless: %2 mode: %3")
24 if (index.
isMyself()) {
return QVariant::fromValue(*
this); }
28 case IndexDBusAddress:
return QVariant::fromValue(m_dBusAddress);
29 case IndexFramelessWindow:
return QVariant::fromValue(m_windowFrameless);
30 case IndexCoreMode:
return QVariant::fromValue(m_coreMode);
31 case IndexAudioMode:
return QVariant::fromValue(m_audioMode);
46 case IndexDBusAddress: this->setDBusAddress(variant.toString());
break;
47 case IndexFramelessWindow: m_windowFrameless = variant.toBool();
break;
48 case IndexCoreMode: m_coreMode = variant.toInt();
break;
49 case IndexAudioMode: m_audioMode = variant.toInt();
break;
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.
Core data traits (aka cached values) and classes.
Free functions in swift::misc.
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.