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
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
29QT_BEGIN_NAMESPACE
30
31using QQmlDebugPacket = QVersionedPacket<QQmlDebugConnector>;
32
34{
36public:
38
39protected:
40 void messageReceived(const QByteArray &) override;
41
44
45private:
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
62QT_END_NAMESPACE
63
64#endif // QQUICKEVENTREPLAYSERVICE_H
void messageReceived(const QByteArray &) override
Combined button and popup list for selecting options.
static QWindow * targetWindow()
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)
static QEvent::Type eventType(int profilerEventType)
Q_GUI_EXPORT void qt_handleWheelEvent(QWindow *window, const QPointF &local, const QPointF &global, QPoint pixelDelta, QPoint angleDelta, Qt::KeyboardModifiers mods, Qt::ScrollPhase phase)