blob: 144fa9b40b6ca979fe8b0c315239febace4bb9fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
// Qt-Security score:significant reason:default
#include "qplatformdefs.h"
#include "qcoreapplication.h"
#include "qunixeventdispatcher_qpa_p.h"
#include "private/qguiapplication_p.h"
#include <qpa/qwindowsysteminterface.h>
#include <QtCore/QDebug>
QT_BEGIN_NAMESPACE
QT_USE_NAMESPACE
QUnixEventDispatcherQPA::QUnixEventDispatcherQPA(QObject *parent)
: QEventDispatcherUNIX(parent)
{ }
QUnixEventDispatcherQPA::~QUnixEventDispatcherQPA()
{ }
bool QUnixEventDispatcherQPA::processEvents(QEventLoop::ProcessEventsFlags flags)
{
const bool didSendEvents = QEventDispatcherUNIX::processEvents(flags);
return QWindowSystemInterface::sendWindowSystemEvents(flags) || didSendEvents;
}
QT_END_NAMESPACE
|