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 | |
13 | QT_BEGIN_NAMESPACE |
14 | |
15 | QT_USE_NAMESPACE |
16 | |
17 | |
18 | QUnixEventDispatcherQPA::QUnixEventDispatcherQPA(QObject *parent) |
19 | : QEventDispatcherUNIX(parent) |
20 | { } |
21 | |
22 | QUnixEventDispatcherQPA::~QUnixEventDispatcherQPA() |
23 | { } |
24 | |
25 | bool QUnixEventDispatcherQPA::processEvents(QEventLoop::ProcessEventsFlags flags) |
26 | { |
27 | const bool didSendEvents = QEventDispatcherUNIX::processEvents(flags); |
28 | return QWindowSystemInterface::sendWindowSystemEvents(flags) || didSendEvents; |
29 | } |
30 | |
31 | QT_END_NAMESPACE |
32 |