Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmldebugtranslationclient.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
6
7#include <QDebug>
8
9#include <private/qqmldebugconnector_p.h>
10#include <private/qversionedpacket_p.h>
11
13
15 : QQmlDebugClient(QLatin1String("DebugTranslation"), client)
16{
17}
18
20{
23
24 packet >> type;
25 switch (type) {
27 packet >> translationIssues;
28 break;
29 }
31 languageChanged = true;
32 break;
33 }
35 packet >> qmlElements;
36 break;
37 }
39 packet >> qmlStates;
40 break;
41 }
42
43 default:
44 qWarning() << "TestDebugTranslationClient: received unknown command: " << static_cast<int>(type);
45 break;
46 }
47}
48
50
51#include "moc_qqmldebugtranslationclient_p.cpp"
\inmodule QtCore
Definition qbytearray.h:57
virtual void messageReceived(const QByteArray &message) override
QVector< QQmlDebugTranslation::TranslationIssue > translationIssues
QQmlDebugTranslationClient(QQmlDebugConnection *client)
QVector< QQmlDebugTranslation::QmlElement > qmlElements
QVector< QQmlDebugTranslation::QmlState > qmlStates
Combined button and popup list for selecting options.
#define qWarning
Definition qlogging.h:162
GLenum type
GLuint GLsizei const GLchar * message