8 namespace swift::misc::input
11 : m_deviceName(deviceName), m_buttonIndex(index)
16 return QStringLiteral(
"%1%2 - %3").
arg(buttonIndentifier()).
arg(m_buttonIndex).
arg(m_deviceName);
25 m_deviceName = button.m_deviceName;
26 m_buttonIndex = button.m_buttonIndex;
43 default: Q_ASSERT_X(
false,
"CJoystickButton",
"index unknown (setter)");
break;
59 Q_ASSERT_X(
false,
"CJoystickButton",
"index unknown");
73 name.
remove(buttonIndentifier());
Non-owning reference to a CPropertyIndex with a subset of its features.
QString toQString(bool i18n=false) const
Cast as QString.
CastType frontCasted() const
First element casted to given type, usually the PropertIndex enum.
bool isMyself() const
Myself index, used with nesting.
QString & append(QChar ch)
QString arg(Args &&... args) const const
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
qsizetype indexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
QString mid(qsizetype position, qsizetype n) &&
QString number(double n, char format, int precision)
QString & remove(QChar ch, Qt::CaseSensitivity cs)
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
int toInt(bool *ok, int base) const const
QString trimmed() const const
QVariant fromValue(T &&value)
#define SWIFT_DEFINE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template definition of mixins for a CValueObject subclass.