Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qinputdevicemanager.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
6
8
10
11
32{
33 qRegisterMetaType<DeviceType>();
34}
35
37
39{
40 Q_D(const QInputDeviceManager);
41 return d->deviceCount(type);
42}
43
45{
46 return m_deviceCount[type];
47}
48
50{
52 if (m_deviceCount[type] != count) {
54 emit q->deviceListChanged(type);
55 }
56}
57
59{
61}
62
74Qt::KeyboardModifiers QInputDeviceManager::keyboardModifiers() const
75{
76 Q_D(const QInputDeviceManager);
77 return d->keyboardModifiers;
78}
79
80void QInputDeviceManager::setKeyboardModifiers(Qt::KeyboardModifiers mods)
81{
83 d->keyboardModifiers = mods;
84}
85
87
88#include "moc_qinputdevicemanager_p.cpp"
std::array< int, QInputDeviceManager::NumDeviceTypes > m_deviceCount
int deviceCount(QInputDeviceManager::DeviceType type) const
void setDeviceCount(QInputDeviceManager::DeviceType type, int count)
QInputDeviceManager acts as a communication hub between QtGui and the input handlers.
void cursorPositionChangeRequested(const QPoint &pos)
void setKeyboardModifiers(Qt::KeyboardModifiers mods)
void setCursorPos(const QPoint &pos)
Qt::KeyboardModifiers keyboardModifiers() const
int deviceCount(DeviceType type) const
~QInputDeviceManager() override
\inmodule QtCore
Definition qobject.h:90
\inmodule QtCore\reentrant
Definition qpoint.h:23
Combined button and popup list for selecting options.
#define QT_IMPL_METATYPE_EXTERN_TAGGED(TYPE, TAG)
Definition qmetatype.h:1363
GLenum GLenum GLsizei count
GLenum type
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
#define emit
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent