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
qgenericunixeventdispatcher.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
7#if QT_CONFIG(glib)
8# include "qeventdispatcher_glib_p.h"
9#endif
11
12class QAbstractEventDispatcher *QtGenericUnixDispatcher::createUnixEventDispatcher()
13{
14#if !defined(QT_NO_GLIB) && !defined(Q_OS_WIN)
15 if (qEnvironmentVariableIsEmpty("QT_NO_GLIB") && QEventDispatcherGlib::versionSupported())
16 return new QPAEventDispatcherGlib();
17 else
18#endif
19 return new QUnixEventDispatcherQPA();
20}
21
22QT_END_NAMESPACE