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
qquickevents.cpp
Go to the documentation of this file.
1// Copyright (C) 2020 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#include "qquickevents_p_p.h"
5#include <QtCore/qmap.h>
6#include <QtGui/private/qguiapplication_p.h>
7#include <QtGui/private/qinputdevice_p.h>
8#include <QtGui/private/qevent_p.h>
9#include <QtQuick/private/qquickitem_p.h>
10#include <QtQuick/private/qquickpointerhandler_p.h>
11#include <QtQuick/private/qquickpointerhandler_p_p.h>
12#include <QtQuick/private/qquickwindow_p.h>
13#include <private/qdebug_p.h>
14
16
17Q_LOGGING_CATEGORY(lcPointerEvents, "qt.quick.pointer.events")
18
19
142#if QT_CONFIG(shortcut)
143bool QQuickKeyEvent::matches(QKeySequence::StandardKey matchKey) const
144{
145 // copying QKeyEvent::matches
147
148 const QList<QKeySequence> bindings = QKeySequence::keyBindings(matchKey);
149 return bindings.contains(QKeySequence(searchkey));
150}
151#endif
152
153
463
464#include "moc_qquickevents_p_p.cpp"
The QKeySequence class encapsulates a key sequence as used by shortcuts.
static QList< QKeySequence > keyBindings(StandardKey key)
Combined button and popup list for selecting options.
@ GroupSwitchModifier
@ KeypadModifier
#define Q_LOGGING_CATEGORY(name,...)
unsigned int uint
Definition qtypes.h:34