5#ifndef QCOCOAMESSAGEDIALOG_H
6#define QCOCOAMESSAGEDIALOG_H
8#include <qpa/qplatformdialoghelper.h>
10Q_FORWARD_DECLARE_OBJC_CLASS(NSAlert);
11typedef long NSInteger;
25 bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent)
override;
29 Qt::WindowModality modality()
const;
30 NSAlert *m_alert =
nullptr;
31 QEventLoop *m_eventLoop =
nullptr;
static void clearCurrentThreadCocoaEventDispatcherInterruptFlag()
QCocoaMessageDialog()=default
bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override
NSInteger NSModalResponse
static const NSInteger kModalResponseDialogHidden
static NSControlStateValue controlStateFor(Qt::CheckState state)
static QString toPlainText(const QString &text)
static Qt::CheckState checkStateFor(NSControlStateValue state)