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
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
18
20{
21 QVersionedPacket<QQmlDebugConnector> packet(message);
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:166
GLenum type
GLuint GLsizei const GLchar * message