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
qwaylandwindowmanagerintegration.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 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
9
10#include <stdint.h>
11#include <QtCore/QEvent>
12#include <QtCore/QHash>
13#include <QtCore/QUrl>
14#include <qpa/qplatformnativeinterface.h>
15#include <qpa/qplatformwindow.h>
16#include <QtGui/QtEvents>
17#include <QtGui/QGuiApplication>
18
19#include <QDebug>
20
21QT_BEGIN_NAMESPACE
22
23namespace QtWaylandClient {
24
30
35
40
45
50
52{
54 static const int chunkSize = 128;
55 while (!data.isEmpty()) {
58 if (chunk.at(chunk.size() - 1).isHighSurrogate() && !data.isEmpty()) {
59 chunk.append(data.at(0));
60 data = data.mid(1);
61 }
63 }
64}
65}
66
67QT_END_NAMESPACE