6 #ifndef SWIFT_MISC_INPUT_KEYBOARDKEY_H
7 #define SWIFT_MISC_INPUT_KEYBOARDKEY_H
21 namespace swift::misc::input
30 IndexKey = CPropertyIndexRef::GlobalIndexCKeyboardKey,
45 QString getKeyAsString()
const;
60 bool isModifier()
const {
return allModifiers().contains(m_keyCode); }
63 bool hasKey()
const {
return !(m_keyCode == KeyCode::Key_Unknown); }
75 QString convertToQString(
bool i18n =
false)
const;
78 static const QList<KeyCode> &allModifiers();
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
KeyCode
Key code http://www.kbdlayout.info/.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...