| Line | Source | Count |
| 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 | | - |
| 33 | | - |
| 34 | #include "qplatformdefs.h" | - |
| 35 | #include "qcoreapplication.h" | - |
| 36 | #include "qunixeventdispatcher_qpa_p.h" | - |
| 37 | #include "private/qguiapplication_p.h" | - |
| 38 | | - |
| 39 | #include <qpa/qwindowsysteminterface.h> | - |
| 40 | #include <QtCore/QElapsedTimer> | - |
| 41 | #include <QtCore/QAtomicInt> | - |
| 42 | #include <QtCore/QSemaphore> | - |
| 43 | | - |
| 44 | #include <QtCore/QDebug> | - |
| 45 | | - |
| 46 | #include <errno.h> | - |
| 47 | | - |
| 48 | QT_BEGIN_NAMESPACE | - |
| 49 | | - |
| 50 | QT_USE_NAMESPACE | - |
| 51 | | - |
| 52 | | - |
| 53 | QUnixEventDispatcherQPA::QUnixEventDispatcherQPA(QObject *parent) | - |
| 54 | : QEventDispatcherUNIX(parent) | - |
| 55 | { never executed: end of block }never executed: end of block | 0 |
| 56 | | - |
| 57 | QUnixEventDispatcherQPA::~QUnixEventDispatcherQPA() | - |
| 58 | { } | - |
| 59 | | - |
| 60 | bool QUnixEventDispatcherQPA::processEvents(QEventLoop::ProcessEventsFlags flags) | - |
| 61 | { | - |
| 62 | const bool didSendEvents = QEventDispatcherUNIX::processEvents(flags); | - |
| 63 | return QWindowSystemInterface::sendWindowSystemEvents(flags) || didSendEvents; never executed: return QWindowSystemInterface::sendWindowSystemEvents(flags) || didSendEvents; | TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 64 | } | - |
| 65 | | - |
| 66 | bool QUnixEventDispatcherQPA::hasPendingEvents() | - |
| 67 | { | - |
| 68 | extern uint qGlobalPostedEventsCount(); | - |
| 69 | return qGlobalPostedEventsCount() || QWindowSystemInterface::windowSystemEventsQueued(); never executed: return qGlobalPostedEventsCount() || QWindowSystemInterface::windowSystemEventsQueued(); | TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 70 | } | - |
| 71 | | - |
| 72 | void QUnixEventDispatcherQPA::flush() | - |
| 73 | { | - |
| 74 | if(qApp)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 75 | qApp->sendPostedEvents(); never executed: (static_cast<QGuiApplication *>(QCoreApplication::instance()))->sendPostedEvents(); | 0 |
| 76 | } never executed: end of block | 0 |
| 77 | | - |
| 78 | QT_END_NAMESPACE | - |
| | |