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
qquickeventreplayservice.h
Go to the documentation of this file.
1
// Copyright (C) 2025 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
4
5
#
ifndef
QQUICKEVENTREPLAYSERVICE_H
6
#
define
QQUICKEVENTREPLAYSERVICE_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
private
/
qqmlconfigurabledebugservice_p
.
h
>
20
#
include
<
private
/
qqmldebugserviceinterfaces_p
.
h
>
21
#
include
<
private
/
qqmlprofilerdefinitions_p
.
h
>
22
#
include
<
private
/
qqmldebugconnector_p
.
h
>
23
#
include
<
private
/
qversionedpacket_p
.
h
>
24
#
include
<
private
/
qquickprofiler_p
.
h
>
25
26
#
include
<
QtCore
/
qqueue
.
h
>
27
#
include
<
QtCore
/
qtimer
.
h
>
28
29
QT_BEGIN_NAMESPACE
30
31
using
QQmlDebugPacket = QVersionedPacket<QQmlDebugConnector>;
32
33
class
QQuickEventReplayServiceImpl
:
public
QQuickEventReplayService
,
public
QQmlProfilerDefinitions
34
{
35
Q_OBJECT
36
public
:
37
QQuickEventReplayServiceImpl
(
QObject
*
parent
=
nullptr
);
38
39
protected
:
40
void
messageReceived
(
const
QByteArray &)
override
;
41
42
Q_SIGNALS
:
43
void
dataAvailable
();
44
45
private
:
46
void
start();
47
void
sendNextEvent();
48
void
scheduleNextEvent(
const
QQuickProfilerData &nextEvent);
49
QQuickProfilerData takeNextEvent();
50
51
QQueue<QQuickProfilerData> m_data;
52
QMutex m_dataMutex;
53
54
QElapsedTimer m_elapsed;
55
QTimer m_schedule;
56
57
Qt::KeyboardModifiers m_currentModifiers =
Qt
::
NoModifier
;
58
Qt::MouseButtons m_currentButtons =
Qt
::
NoButton
;
59
QPoint m_currentPos;
60
};
61
62
QT_END_NAMESPACE
63
64
#
endif
// QQUICKEVENTREPLAYSERVICE_H
QQuickEventReplayServiceImpl
Definition
qquickeventreplayservice.h:34
QQuickEventReplayServiceImpl::messageReceived
void messageReceived(const QByteArray &) override
Definition
qquickeventreplayservice.cpp:34
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
targetWindow
static QWindow * targetWindow()
Definition
qquickeventreplayservice.cpp:65
qt_handleKeyEvent
Q_GUI_EXPORT void qt_handleKeyEvent(QWindow *w, QEvent::Type t, int k, Qt::KeyboardModifiers mods, const QString &text=QString(), bool autorep=false, ushort count=1)
Definition
qwindowsysteminterface.cpp:1159
eventType
static QEvent::Type eventType(int profilerEventType)
Definition
qquickeventreplayservice.cpp:118
qt_handleWheelEvent
Q_GUI_EXPORT void qt_handleWheelEvent(QWindow *window, const QPointF &local, const QPointF &global, QPoint pixelDelta, QPoint angleDelta, Qt::KeyboardModifiers mods, Qt::ScrollPhase phase)
Definition
qwindowsysteminterface.cpp:1208
qtdeclarative
src
plugins
qmltooling
qmldbg_quickeventreplay
qquickeventreplayservice.h
Generated on
for Qt by
1.18.0