31 Q_PROPERTY(Qt::Key key READ key)
32 Q_PROPERTY(QString text READ text)
33 Q_PROPERTY(Qt::KeyboardModifiers modifiers READ modifiers)
34 Q_PROPERTY(
bool autoRepeat READ isAutoRepeat)
35 Q_PROPERTY(quint32 nativeScanCode READ nativeScanCode)
36 Q_PROPERTY(quint32 nativeVirtualKey READ nativeVirtualKey)
37 Q_PROPERTY(
bool rightShift READ rightShift WRITE setRightShift)
39 KeyEvent(Qt::Key key = Qt::Key_unknown, Qt::KeyboardModifiers modifiers = Qt::NoModifier, quint32 nativeScanCode = 0, quint32 nativeVirtualKey = 0,
const QString &text = QString());
43 const QString &text()
const;
44 Qt::KeyboardModifiers modifiers()
const;
45 bool isAutoRepeat()
const;
46 quint32 nativeScanCode()
const;
47 quint32 nativeVirtualKey()
const;
49 bool rightShift()
const;
50 void setRightShift(
bool newRightShift);
53 Qt::Key m_key = Qt::Key_unknown;
55 Qt::KeyboardModifiers m_modifiers = Qt::NoModifier;
56 bool m_autoRepeat =
false;
57 quint32 m_nativeScanCode = 0;
58 quint32 m_nativeVirtualKey = 0;
59 bool m_rightShift =
false;