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
qwaylandeventdispatcher.cpp
Go to the documentation of this file.
1// Copyright (C) 2025 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
5
7
8namespace QtWaylandClient {
9
11
12QAbstractEventDispatcher *QWaylandEventDispatcher::createEventDispatcher()
13{
14#if !defined(QT_NO_GLIB) && !defined(Q_OS_WIN)
15 if (qEnvironmentVariableIsEmpty("QT_NO_GLIB") && QEventDispatcherGlib::versionSupported())
16 return new QWaylandGlibEventDispatcher();
17#endif
18 return new QWaylandUnixEventDispatcher();
19}
20
26
32
38
43
44#if !defined(QT_NO_GLIB) && !defined(Q_OS_WIN)
45
46QEventLoop::ProcessEventsFlags QWaylandGlibEventDispatcher::flags() const
47{
48 return m_flags;
49}
50
51#endif
52
53}
54
55QT_END_NAMESPACE
static QWaylandEventDispatcher * eventDispatcher
QEventLoop::ProcessEventsFlags flags() const override