summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qevent.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-11-09 15:53:49 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2020-11-10 16:53:31 +0100
commit9fa071d3fe419e4c5319c1af1a46c7cd4771b45f (patch)
tree94d8bc499174e49f8b8538a31f27720bf27518c9 /src/gui/kernel/qevent.h
parent2f71d9d837ad50428dc86ca80496b16b8140b2bf (diff)
Replace ushort -> quint16 in event classes
We used quint32 for 32-bit types and ushort for 16-bit ones, but using explicit bit sizes looks more consistent. Change-Id: I3106dd6ecb2367fef6f8012c28266e1b4b1abf4b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/kernel/qevent.h')
-rw-r--r--src/gui/kernel/qevent.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h
index 7a361591e9..ce61b3a34f 100644
--- a/src/gui/kernel/qevent.h
+++ b/src/gui/kernel/qevent.h
@@ -406,10 +406,10 @@ class Q_GUI_EXPORT QKeyEvent : public QInputEvent
{
public:
QKeyEvent(Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(),
- bool autorep = false, ushort count = 1);
+ bool autorep = false, quint16 count = 1);
QKeyEvent(Type type, int key, Qt::KeyboardModifiers modifiers,
quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers,
- const QString &text = QString(), bool autorep = false, ushort count = 1,
+ const QString &text = QString(), bool autorep = false, quint16 count = 1,
const QInputDevice *device = QInputDevice::primaryKeyboard());
~QKeyEvent();
@@ -443,8 +443,8 @@ protected:
quint32 m_scanCode;
quint32 m_virtualKey;
quint32 m_modifiers;
- ushort m_count;
- ushort m_autoRepeat:1;
+ quint16 m_count;
+ quint16 m_autoRepeat : 1;
// ushort reserved:15;
};