Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwasmkeytranslator.h
Go to the documentation of this file.
1
// Copyright (C) 2023 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
#ifndef QWASMKEYTRANSLATOR_H
5
#define QWASMKEYTRANSLATOR_H
6
7
#include <QtCore/qnamespace.h>
8
#include <QtCore/qtypes.h>
9
10
#include <optional>
11
12
QT_BEGIN_NAMESPACE
13
14
struct
KeyEvent
;
15
16
namespace
QWasmKeyTranslator
{
17
std::optional<Qt::Key>
mapWebKeyTextToQtKey
(
const
char
*toFind);
18
}
19
20
class
QWasmDeadKeySupport
21
{
22
public
:
23
explicit
QWasmDeadKeySupport
();
24
~QWasmDeadKeySupport
();
25
26
void
applyDeadKeyTranslations
(
KeyEvent
*
event
);
27
28
private
:
29
Qt::Key
m_activeDeadKey =
Qt::Key_unknown
;
30
Qt::Key
m_keyModifiedByDeadKeyOnPress =
Qt::Key_unknown
;
31
};
32
33
QT_END_NAMESPACE
34
#endif
// QWASMKEYTRANSLATOR_H
QWasmDeadKeySupport
Definition
qwasmkeytranslator.h:21
QWasmDeadKeySupport::applyDeadKeyTranslations
void applyDeadKeyTranslations(KeyEvent *event)
Definition
qwasmkeytranslator.cpp:257
QWasmDeadKeySupport::~QWasmDeadKeySupport
~QWasmDeadKeySupport()
QWasmDeadKeySupport::QWasmDeadKeySupport
QWasmDeadKeySupport()
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
QWasmKeyTranslator
Definition
qwasmkeytranslator.h:16
QWasmKeyTranslator::mapWebKeyTextToQtKey
std::optional< Qt::Key > mapWebKeyTextToQtKey(const char *toFind)
Definition
qwasmkeytranslator.cpp:244
Qt::Key
Key
Definition
qnamespace.h:511
Qt::Key_unknown
@ Key_unknown
Definition
qnamespace.h:1049
event
struct _cl_event * event
Definition
qopenglext.h:2998
KeyEvent
Definition
qwasmevent.h:141
qtbase
src
plugins
platforms
wasm
qwasmkeytranslator.h
Generated by
1.10.0