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// Qt-Security score:significant reason:default
4#ifndef QKEYMAPPER_P_H
5#define QKEYMAPPER_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 <qobject.h>
20#include <private/qobject_p.h>
21#include <qlist.h>
22#include <qlocale.h>
23#include <qevent.h>
24
25#include <QtCore/qnativeinterface.h>
26
28
29class Q_GUI_EXPORT QKeyMapper : public QObject
30{
31 Q_OBJECT
32public:
33 explicit QKeyMapper();
34 ~QKeyMapper();
35
36 static QKeyMapper *instance();
37 static QList<QKeyCombination> possibleKeys(const QKeyEvent *e);
38
39 QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(QKeyMapper)
40
41private:
42 Q_DISABLE_COPY_MOVE(QKeyMapper)
43};
44
45// ----------------- QNativeInterface -----------------
46
47namespace QNativeInterface::Private {
48
49#if QT_CONFIG(evdev) || defined(Q_QDOC)
51{
53 virtual void loadKeymap(const QString &filename) = 0;
54 virtual void switchLang() = 0;
55};
56#endif
57
58#if QT_CONFIG(vxworksevdev) || defined(Q_QDOC)
60{
62 virtual void loadKeymap(const QString &filename) = 0;
63 virtual void switchLang() = 0;
64};
65#endif
66
67} // QNativeInterface::Private
68
69
70QT_END_NAMESPACE
71
72#endif // QKEYMAPPER_P_H
Combined button and popup list for selecting options.
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