Debian Codegraph @

wayland/wayland-shell/config.tests/wayland_test/main.cpp

raw
1 // SPDX-FileCopyrightText: 2022 Uniontech Software Technology Co.,Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-or-later
4
5 #include <QGuiApplication>
6 #include <private/qguiapplication_p.h>
7 #include <private/qwaylanddisplay_p.h>
8 #include <private/qwaylandintegration_p.h>
9 #include <private/qwaylandwindow_p.h>
10 #include <qpa/qplatformcursor.h>
11 #include <qpa/qplatforminputcontext.h>
12 #include <qpa/qplatformintegration.h>
13 #include <qpa/qwindowsysteminterface.h>
14 #include <private/qxkbcommon_p.h>
15 #ifndef D_DEEPIN_IS_DWAYLAND
16 #include <KWayland/Client/registry.h>
17 #include <KWayland/Client/ddeshell.h>
18 #else
19 #include <DWayland/Client/registry.h>
20 #include <DWayland/Client/ddeshell.h>
21 #endif
22
23
24 using namespace QtWaylandClient;
25
26 int main(int argc, char *argv[])
27 {
28 QGuiApplication app(argc, argv);
29 #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
30 QWaylandDisplay *display =
31 static_cast<QWaylandIntegration *>(
32 QGuiApplicationPrivate::platformIntegration())
33 ->display();
34 display->usingInputContextFromCompositor();
35 #endif
36 return 0;
37 }