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
4#include "qplatformdefs.h"
5#include "qcoreapplication.h"
6#include "qunixeventdispatcher_qpa_p.h"
7#include "private/qguiapplication_p.h"
8
9#include <qpa/qwindowsysteminterface.h>
10
11#include <QtCore/QDebug>
12
13QT_BEGIN_NAMESPACE
14
15QT_USE_NAMESPACE
16
17
18QUnixEventDispatcherQPA::QUnixEventDispatcherQPA(QObject *parent)
19 : QEventDispatcherUNIX(parent)
20{ }
21
22QUnixEventDispatcherQPA::~QUnixEventDispatcherQPA()
23{ }
24
25bool QUnixEventDispatcherQPA::processEvents(QEventLoop::ProcessEventsFlags flags)
26{
27 const bool didSendEvents = QEventDispatcherUNIX::processEvents(flags);
28 return QWindowSystemInterface::sendWindowSystemEvents(flags) || didSendEvents;
29}
30
31QT_END_NAMESPACE
32

source code of qtbase/src/gui/platform/unix/qunixeventdispatcher.cpp