Coverage Report

Created: 2026-10-28 07:09

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/qtbase/src/gui/platform/unix/qgenericunixeventdispatcher.cpp
Line
Count
Source
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
5
#include "qgenericunixeventdispatcher_p.h"
6
#include "qunixeventdispatcher_qpa_p.h"
7
#if QT_CONFIG(glib)
8
#   include "qeventdispatcher_glib_p.h"
9
#endif
10
QT_BEGIN_NAMESPACE
11
12
class QAbstractEventDispatcher *QtGenericUnixDispatcher::createUnixEventDispatcher()
13
198k
{
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
198k
        return new QUnixEventDispatcherQPA();
20
198k
}
21
22
QT_END_NAMESPACE