Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
27
QT_BEGIN_NAMESPACE
28
29
class
Q_GUI_EXPORT
QKeyMapper
:
public
QObject
30
{
31
Q_OBJECT
32
public
:
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
41
private
:
42
Q_DISABLE_COPY_MOVE(QKeyMapper)
43
};
44
45
// ----------------- QNativeInterface -----------------
46
47
namespace
QNativeInterface::
Private
{
48
49
#
if
QT_CONFIG
(
evdev
)
||
defined
(
Q_QDOC
)
50
struct
Q_GUI_EXPORT
QEvdevKeyMapper
51
{
52
QT_DECLARE_NATIVE_INTERFACE
(
QEvdevKeyMapper
, 1,
QKeyMapper
)
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
)
59
struct
Q_GUI_EXPORT
QVxKeyMapper
60
{
61
QT_DECLARE_NATIVE_INTERFACE
(
QVxKeyMapper
, 1,
QKeyMapper
)
62
virtual
void
loadKeymap
(
const
QString
&
filename
) = 0;
63
virtual
void
switchLang
() = 0;
64
};
65
#
endif
66
67
}
// QNativeInterface::Private
68
69
70
QT_END_NAMESPACE
71
72
#
endif
// QKEYMAPPER_P_H
QKeyMapper
Definition
qkeymapper_p.h:30
QNativeInterface
Definition
qnativeinterface.h:51
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_GLOBAL_STATIC
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
qtbase
src
gui
kernel
qkeymapper_p.h
Generated on
for Qt by
1.18.0