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// Qt-Security score:significant reason:default
4
10
11#include <stdint.h>
12#include <QtCore/QEvent>
13#include <QtCore/QHash>
14#include <QtCore/QUrl>
15#include <qpa/qplatformnativeinterface.h>
16#include <qpa/qplatformwindow.h>
17#include <QtGui/QtEvents>
18#include <QtGui/QGuiApplication>
19
20#include <QDebug>
21
22QT_BEGIN_NAMESPACE
23
24namespace QtWaylandClient {
25
31
36
41
46
51
53{
55 static const int chunkSize = 128;
56 while (!data.isEmpty()) {
59 if (chunk.at(chunk.size() - 1).isHighSurrogate() && !data.isEmpty()) {
60 chunk.append(data.at(0));
61 data = data.mid(1);
62 }
64 }
65}
66}
67
68QT_END_NAMESPACE