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
QMessageDialogOptions Class Reference

#include <qplatformdialoghelper.h>

+ Collaboration diagram for QMessageDialogOptions:

Classes

struct  CustomButton
 

Public Types

enum class  Option { DontUseNativeDialog = 0x00000001 }
 
enum  StandardIcon {
  NoIcon , Information , Warning , Critical ,
  Question
}
 

Public Member Functions

 Q_DECLARE_FLAGS (Options, Option)
 
 Q_FLAG (Options)
 
QSharedPointer< QMessageDialogOptionsclone () const
 
QString windowTitle () const
 
void setWindowTitle (const QString &)
 
void setStandardIcon (StandardIcon icon)
 
StandardIcon standardIcon () const
 
void setIconPixmap (const QPixmap &pixmap)
 
QPixmap iconPixmap () const
 
void setText (const QString &text)
 
QString text () const
 
void setInformativeText (const QString &text)
 
QString informativeText () const
 
void setDetailedText (const QString &text)
 
QString detailedText () const
 
void setOption (Option option, bool on=true)
 
bool testOption (Option option) const
 
void setOptions (Options options)
 
Options options () const
 
void setStandardButtons (QPlatformDialogHelper::StandardButtons buttons)
 
QPlatformDialogHelper::StandardButtons standardButtons () const
 
int addButton (const QString &label, QPlatformDialogHelper::ButtonRole role, void *buttonImpl=nullptr, int buttonId=0)
 
void removeButton (int id)
 
const QList< CustomButton > & customButtons ()
 
const CustomButtoncustomButton (int id)
 
void clearCustomButtons ()
 
void setCheckBox (const QString &label, Qt::CheckState state)
 
QString checkBoxLabel () const
 
Qt::CheckState checkBoxState () const
 
void setEscapeButton (int id)
 
int escapeButton () const
 
void setDefaultButton (int id)
 
int defaultButton () const
 

Static Public Member Functions

static QSharedPointer< QMessageDialogOptionscreate ()
 

Protected Member Functions

 QMessageDialogOptions (QMessageDialogOptionsPrivate *dd)
 
 ~QMessageDialogOptions ()
 

Detailed Description

Definition at line 398 of file qplatformdialoghelper.h.

Member Enumeration Documentation

◆ Option

enum class QMessageDialogOptions::Option
strong
Enumerator
DontUseNativeDialog 

Definition at line 408 of file qplatformdialoghelper.h.

◆ StandardIcon

Enumerator
NoIcon 
Information 
Warning 
Critical 
Question 

Definition at line 415 of file qplatformdialoghelper.h.

Constructor & Destructor Documentation

◆ QMessageDialogOptions()

QMessageDialogOptions::QMessageDialogOptions ( QMessageDialogOptionsPrivate * dd)
protected

Definition at line 786 of file qplatformdialoghelper.cpp.

◆ ~QMessageDialogOptions()

QMessageDialogOptions::~QMessageDialogOptions ( )
protected

Definition at line 791 of file qplatformdialoghelper.cpp.

Member Function Documentation

◆ addButton()

int QMessageDialogOptions::addButton ( const QString & label,
QPlatformDialogHelper::ButtonRole role,
void * buttonImpl = nullptr,
int buttonId = 0 )

Definition at line 885 of file qplatformdialoghelper.cpp.

References QList< T >::append(), QMessageDialogOptionsPrivate::customButtons, and QMessageDialogOptionsPrivate::nextCustomButtonId.

Referenced by QMessageBoxPrivate::helperPrepareShow().

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

◆ checkBoxLabel()

QString QMessageDialogOptions::checkBoxLabel ( ) const

◆ checkBoxState()

Qt::CheckState QMessageDialogOptions::checkBoxState ( ) const

◆ clearCustomButtons()

void QMessageDialogOptions::clearCustomButtons ( )

Definition at line 908 of file qplatformdialoghelper.cpp.

References QList< T >::clear(), and QMessageDialogOptionsPrivate::customButtons.

Referenced by QMessageBoxPrivate::helperPrepareShow().

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

◆ clone()

QSharedPointer< QMessageDialogOptions > QMessageDialogOptions::clone ( ) const

Definition at line 810 of file qplatformdialoghelper.cpp.

References QSharedPointer< T >::create().

+ Here is the call graph for this function:

◆ create()

QSharedPointer< QMessageDialogOptions > QMessageDialogOptions::create ( )
static

Definition at line 805 of file qplatformdialoghelper.cpp.

References QSharedPointer< T >::create().

Referenced by QErrorMessagePrivate::helperPrepareShow().

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

◆ customButton()

const QMessageDialogOptions::CustomButton * QMessageDialogOptions::customButton ( int id)

Definition at line 913 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::customButtons, customButtons(), i, and QListSpecialMethodsBase< T >::indexOf().

Referenced by QtAndroidDialogHelpers::QAndroidPlatformMessageDialogHelper::dialogResult(), and QMessageBoxPrivate::helperClicked().

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

◆ customButtons()

const QList< QMessageDialogOptions::CustomButton > & QMessageDialogOptions::customButtons ( )

Definition at line 903 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::customButtons.

Referenced by customButton(), QCocoaMessageDialog::show(), and QIOSMessageDialog::show().

+ Here is the caller graph for this function:

◆ defaultButton()

int QMessageDialogOptions::defaultButton ( ) const

Definition at line 940 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::defaultButtonId.

Referenced by QCocoaMessageDialog::show().

+ Here is the caller graph for this function:

◆ detailedText()

QString QMessageDialogOptions::detailedText ( ) const

Definition at line 865 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::detailedText.

Referenced by QQuickLabsPlatformMessageDialog::detailedText(), QQuickMessageDialog::detailedText(), setDetailedText(), QQuickLabsPlatformMessageDialog::setDetailedText(), QQuickMessageDialog::setDetailedText(), and QWidgetPlatformMessageDialog::show().

+ Here is the caller graph for this function:

◆ escapeButton()

int QMessageDialogOptions::escapeButton ( ) const

Definition at line 950 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::escapeButtonId.

Referenced by QCocoaMessageDialog::show().

+ Here is the caller graph for this function:

◆ iconPixmap()

QPixmap QMessageDialogOptions::iconPixmap ( ) const

Definition at line 840 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::iconPixmap.

Referenced by QCocoaMessageDialog::show().

+ Here is the caller graph for this function:

◆ informativeText()

QString QMessageDialogOptions::informativeText ( ) const

Definition at line 855 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::informativeText.

Referenced by QQuickLabsPlatformMessageDialog::informativeText(), QQuickMessageDialog::informativeText(), setInformativeText(), QQuickLabsPlatformMessageDialog::setInformativeText(), QQuickMessageDialog::setInformativeText(), and QWidgetPlatformMessageDialog::show().

+ Here is the caller graph for this function:

◆ options()

QMessageDialogOptions::Options QMessageDialogOptions::options ( ) const

Definition at line 972 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::options.

Referenced by QMessageBoxPrivate::canBeNativeDialog(), and setOptions().

+ Here is the caller graph for this function:

◆ Q_DECLARE_FLAGS()

QMessageDialogOptions::Q_DECLARE_FLAGS ( Options ,
Option  )

◆ Q_FLAG()

QMessageDialogOptions::Q_FLAG ( Options )

◆ removeButton()

void QMessageDialogOptions::removeButton ( int id)

Definition at line 898 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::customButtons, and QList< T >::removeOne().

+ Here is the call graph for this function:

◆ setCheckBox()

void QMessageDialogOptions::setCheckBox ( const QString & label,
Qt::CheckState state )

Definition at line 919 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::checkBoxLabel, QMessageDialogOptionsPrivate::checkBoxState, and state.

Referenced by QMessageBoxPrivate::helperPrepareShow().

+ Here is the caller graph for this function:

◆ setDefaultButton()

void QMessageDialogOptions::setDefaultButton ( int id)

Definition at line 935 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::defaultButtonId.

Referenced by QMessageBoxPrivate::helperPrepareShow().

+ Here is the caller graph for this function:

◆ setDetailedText()

void QMessageDialogOptions::setDetailedText ( const QString & text)

Definition at line 870 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::detailedText, and detailedText().

Referenced by QMessageBoxPrivate::helperPrepareShow(), QQuickLabsPlatformMessageDialog::setDetailedText(), and QQuickMessageDialog::setDetailedText().

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

◆ setEscapeButton()

void QMessageDialogOptions::setEscapeButton ( int id)

Definition at line 945 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::escapeButtonId.

Referenced by QMessageBoxPrivate::helperPrepareShow().

+ Here is the caller graph for this function:

◆ setIconPixmap()

void QMessageDialogOptions::setIconPixmap ( const QPixmap & pixmap)

Definition at line 835 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::iconPixmap, and pixmap.

Referenced by QMessageBoxPrivate::helperPrepareShow().

+ Here is the caller graph for this function:

◆ setInformativeText()

void QMessageDialogOptions::setInformativeText ( const QString & text)

Definition at line 860 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::informativeText, and informativeText().

Referenced by QMessageBoxPrivate::helperPrepareShow(), QQuickLabsPlatformMessageDialog::setInformativeText(), and QQuickMessageDialog::setInformativeText().

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

◆ setOption()

void QMessageDialogOptions::setOption ( Option option,
bool on = true )

Definition at line 955 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::options, and setOptions().

+ Here is the call graph for this function:

◆ setOptions()

void QMessageDialogOptions::setOptions ( Options options)

Definition at line 966 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::options, and options().

Referenced by setOption().

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

◆ setStandardButtons()

void QMessageDialogOptions::setStandardButtons ( QPlatformDialogHelper::StandardButtons buttons)

Definition at line 875 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::buttons.

Referenced by QMessageBoxPrivate::helperPrepareShow(), QQuickLabsPlatformMessageDialog::setButtons(), and QQuickMessageDialog::setButtons().

+ Here is the caller graph for this function:

◆ setStandardIcon()

void QMessageDialogOptions::setStandardIcon ( StandardIcon icon)

Definition at line 830 of file qplatformdialoghelper.cpp.

References icon, and QMessageDialogOptionsPrivate::icon.

Referenced by QMessageBoxPrivate::helperPrepareShow().

+ Here is the caller graph for this function:

◆ setText()

void QMessageDialogOptions::setText ( const QString & text)

Definition at line 850 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::text, and text().

Referenced by QMessageBoxPrivate::helperPrepareShow(), QQuickLabsPlatformMessageDialog::setText(), and QQuickMessageDialog::setText().

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

◆ setWindowTitle()

void QMessageDialogOptions::setWindowTitle ( const QString & title)

Definition at line 820 of file qplatformdialoghelper.cpp.

References title, and QMessageDialogOptionsPrivate::windowTitle.

Referenced by QMessageBoxPrivate::helperPrepareShow(), QQuickLabsPlatformMessageDialog::onShow(), and QQuickMessageDialog::onShow().

+ Here is the caller graph for this function:

◆ standardButtons()

QPlatformDialogHelper::StandardButtons QMessageDialogOptions::standardButtons ( ) const

Definition at line 880 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::buttons.

Referenced by QQuickLabsPlatformMessageDialog::buttons(), QQuickMessageDialog::buttons(), QQuickLabsPlatformMessageDialog::setButtons(), QQuickMessageDialog::setButtons(), and QWidgetPlatformMessageDialog::show().

+ Here is the caller graph for this function:

◆ standardIcon()

QMessageDialogOptions::StandardIcon QMessageDialogOptions::standardIcon ( ) const

Definition at line 825 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::icon.

Referenced by QWidgetPlatformMessageDialog::show().

+ Here is the caller graph for this function:

◆ testOption()

bool QMessageDialogOptions::testOption ( Option option) const

Definition at line 961 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::options.

◆ text()

QString QMessageDialogOptions::text ( ) const

Definition at line 845 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::text.

Referenced by setText(), QQuickLabsPlatformMessageDialog::setText(), QQuickMessageDialog::setText(), QWidgetPlatformMessageDialog::show(), QQuickLabsPlatformMessageDialog::text(), and QQuickMessageDialog::text().

+ Here is the caller graph for this function:

◆ windowTitle()

QString QMessageDialogOptions::windowTitle ( ) const

Definition at line 815 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::windowTitle.

Referenced by QWidgetPlatformMessageDialog::show(), QQuickPlatformMessageDialog::show(), QCocoaMessageDialog::show(), and QIOSMessageDialog::show().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: