| 1 | // Copyright (C) 2023 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 QPLATFORMKEYMAPPER_P |
| 5 | #define QPLATFORMKEYMAPPER_P |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is part of the QPA API and is not meant to be used |
| 12 | // in applications. Usage of this API may make your code |
| 13 | // source and binary incompatible with future versions of Qt. |
| 14 | // |
| 15 | |
| 16 | #include <QtGui/qtguiglobal.h> |
| 17 | #include <QtCore/qloggingcategory.h> |
| 18 | |
| 19 | QT_BEGIN_NAMESPACE |
| 20 | |
| 21 | Q_DECLARE_EXPORTED_LOGGING_CATEGORY(lcQpaKeyMapper, Q_GUI_EXPORT) |
| 22 | |
| 23 | class QKeyEvent; |
| 24 | |
| 25 | class Q_GUI_EXPORT QPlatformKeyMapper |
| 26 | { |
| 27 | public: |
| 28 | virtual ~QPlatformKeyMapper(); |
| 29 | |
| 30 | virtual QList<QKeyCombination> possibleKeyCombinations(const QKeyEvent *event) const; |
| 31 | virtual Qt::KeyboardModifiers queryKeyboardModifiers() const; |
| 32 | }; |
| 33 | |
| 34 | QT_END_NAMESPACE |
| 35 | |
| 36 | #endif // QPLATFORMKEYMAPPER_P |
| 37 | |