Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qkeymapper_p.h
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#ifndef QKEYMAPPER_P_H
4#define QKEYMAPPER_P_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <QtGui/private/qtguiglobal_p.h>
18#include <qobject.h>
19#include <private/qobject_p.h>
20#include <qlist.h>
21#include <qlocale.h>
22#include <qevent.h>
23
24#include <QtCore/qnativeinterface.h>
25
27
28class Q_GUI_EXPORT QKeyMapper : public QObject
29{
30 Q_OBJECT
31public:
32 explicit QKeyMapper();
33 ~QKeyMapper();
34
35 static QKeyMapper *instance();
36 static QList<QKeyCombination> possibleKeys(const QKeyEvent *e);
37
38 QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(QKeyMapper)
39
40private:
41 Q_DISABLE_COPY_MOVE(QKeyMapper)
42};
43
44// ----------------- QNativeInterface -----------------
45
46namespace QNativeInterface::Private {
47
48#if QT_CONFIG(evdev) || defined(Q_QDOC)
50{
52 virtual void loadKeymap(const QString &filename) = 0;
53 virtual void switchLang() = 0;
54};
55#endif
56
57#if QT_CONFIG(vxworksevdev) || defined(Q_QDOC)
59{
61 virtual void loadKeymap(const QString &filename) = 0;
62 virtual void switchLang() = 0;
63};
64#endif
65
66} // QNativeInterface::Private
67
68
69QT_END_NAMESPACE
70
71#endif // QKEYMAPPER_P_H
Q_GLOBAL_STATIC(DefaultRoleNames, qDefaultRoleNames, { { Qt::DisplayRole, "display" }, { Qt::DecorationRole, "decoration" }, { Qt::EditRole, "edit" }, { Qt::ToolTipRole, "toolTip" }, { Qt::StatusTipRole, "statusTip" }, { Qt::WhatsThisRole, "whatsThis" }, }) const QHash< int