Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qcocoamessagedialog.mm File Reference
#include "qcocoamessagedialog.h"
#include "qcocoawindow.h"
#include "qcocoahelpers.h"
#include "qcocoaeventdispatcher.h"
#include <QtCore/qmetaobject.h>
#include <QtCore/qscopedvaluerollback.h>
#include <QtCore/qtimer.h>
#include <QtGui/qtextdocument.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/private/qcoregraphics_p.h>
#include <QtGui/qpa/qplatformtheme.h>
#include <AppKit/NSAlert.h>
#include <AppKit/NSButton.h>
+ Include dependency graph for qcocoamessagedialog.mm:

Go to the source code of this file.

Functions

static QString toPlainText (const QString &text)
 
static NSControlStateValue controlStateFor (Qt::CheckState state)
 
static Qt::CheckState checkStateFor (NSControlStateValue state)
 

Variables

static const NSInteger kModalResponseDialogHidden = NSAlertThirdButtonReturn + 1
 

Function Documentation

◆ checkStateFor()

static Qt::CheckState checkStateFor ( NSControlStateValue  state)
static

Definition at line 266 of file qcocoamessagedialog.mm.

References Qt::Checked, Qt::PartiallyChecked, state, and Qt::Unchecked.

◆ controlStateFor()

static NSControlStateValue controlStateFor ( Qt::CheckState  state)
static

Definition at line 50 of file qcocoamessagedialog.mm.

References Qt::Checked, Qt::PartiallyChecked, state, and Qt::Unchecked.

Referenced by QCocoaMessageDialog::show().

+ Here is the caller graph for this function:

◆ toPlainText()

static QString toPlainText ( const QString text)
static

Definition at line 34 of file qcocoamessagedialog.mm.

References Qt::mightBeRichText(), QTextDocument::setHtml(), text, and QTextDocument::toPlainText().

Referenced by QCocoaMessageDialog::show().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ kModalResponseDialogHidden

const NSInteger kModalResponseDialogHidden = NSAlertThirdButtonReturn + 1
static

Definition at line 264 of file qcocoamessagedialog.mm.

Referenced by QCocoaMessageDialog::hide().