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
qwaylandplatformservices.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
11
12QT_BEGIN_NAMESPACE
13
14namespace QtWaylandClient {
15
18
23
32
41
43{
44 if (window && window->handle()) {
45 auto shellSurface = static_cast<QWaylandWindow *>(window->handle())->shellSurface();
46 if (shellSurface) {
48 return QLatin1String("wayland:") + handle;
49 }
50 }
51 return QString();
52}
53
78
83} // namespace QtWaylandClient
84
85QT_END_NAMESPACE