Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qioseventdispatcher.h
Go to the documentation of this file.
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#ifndef QIOSEVENTDISPATCHER_H
5#define QIOSEVENTDISPATCHER_H
6
7#include <QtCore/private/qeventdispatcher_cf_p.h>
8
10
12{
14
15public:
17 bool processPostedEvents() override;
18
19 static bool isQtApplication();
20
21protected:
22 explicit QIOSEventDispatcher(QObject *parent = nullptr);
23};
24
26{
28
29public:
31 bool processEvents(QEventLoop::ProcessEventsFlags flags) override;
32
33 // Public since we can't friend Objective-C methods
34 void handleRunLoopExit(CFRunLoopActivity activity);
35
37
38private:
39 uint m_processEventLevel;
40 RunLoopObserver<QIOSJumpingEventDispatcher> m_runLoopExitObserver;
41};
42
44
45#endif // QIOSEVENTDISPATCHER_H
bool processPostedEvents() override
Override of the CoreFoundation posted events runloop source callback so that we can send window syste...
QIOSEventDispatcher(QObject *parent=nullptr)
static QIOSEventDispatcher * create()
QIOSJumpingEventDispatcher(QObject *parent=nullptr)
bool processEvents(QEventLoop::ProcessEventsFlags flags) override
Processes pending events that match flags until there are no more events to process.
void handleRunLoopExit(CFRunLoopActivity activity)
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
Combined button and popup list for selecting options.
GLbitfield flags
#define Q_OBJECT
unsigned int uint
Definition qtypes.h:34