| 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 | |
| 4 | #ifndef QINPUTDEVICEMANAGER_P_P_H |
| 5 | #define QINPUTDEVICEMANAGER_P_P_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists purely as an |
| 12 | // implementation detail. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <QtGui/private/qtguiglobal_p.h> |
| 19 | #include <private/qobject_p.h> |
| 20 | #include "qinputdevicemanager_p.h" |
| 21 | |
| 22 | #include <array> |
| 23 | |
| 24 | QT_BEGIN_NAMESPACE |
| 25 | |
| 26 | class Q_GUI_EXPORT QInputDeviceManagerPrivate : public QObjectPrivate |
| 27 | { |
| 28 | Q_DECLARE_PUBLIC(QInputDeviceManager) |
| 29 | |
| 30 | public: |
| 31 | static QInputDeviceManagerPrivate *get(QInputDeviceManager *mgr) { return mgr->d_func(); } |
| 32 | |
| 33 | int deviceCount(QInputDeviceManager::DeviceType type) const; |
| 34 | void setDeviceCount(QInputDeviceManager::DeviceType type, int count); |
| 35 | |
| 36 | std::array<int, QInputDeviceManager::NumDeviceTypes> m_deviceCount = {}; |
| 37 | |
| 38 | Qt::KeyboardModifiers keyboardModifiers; |
| 39 | }; |
| 40 | |
| 41 | QT_END_NAMESPACE |
| 42 | |
| 43 | #endif // QINPUTDEVICEMANAGER_P_P_H |
| 44 |
