Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
48
57
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:103
\inmodule QtCore\reentrant
Definition qpoint.h:25
Combined button and popup list for selecting options.
#define QT_IMPL_METATYPE_EXTERN_TAGGED(TYPE, TAG)
Definition qmetatype.h:1384
GLenum GLenum GLsizei count
GLenum type
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
#define emit