Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QMessageDialogOptions Class Reference

#include <qplatformdialoghelper.h>

+ Collaboration diagram for QMessageDialogOptions:

Classes

struct  CustomButton
 

Public Types

enum class  Option : quint8 { 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)
 
void removeButton (int id)
 
const QList< CustomButton > & customButtons ()
 
const CustomButtoncustomButton (int id)
 
void setCheckBox (const QString &label, Qt::CheckState state)
 
QString checkBoxLabel () const
 
Qt::CheckState checkBoxState () 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

Enumerator
DontUseNativeDialog 

Definition at line 408 of file qplatformdialoghelper.h.

◆ StandardIcon

Enumerator
NoIcon 
Information 
Warning 
Critical 
Question 

Definition at line 413 of file qplatformdialoghelper.h.

Constructor & Destructor Documentation

◆ QMessageDialogOptions()

QMessageDialogOptions::QMessageDialogOptions ( QMessageDialogOptionsPrivate dd)
protected

Definition at line 784 of file qplatformdialoghelper.cpp.

◆ ~QMessageDialogOptions()

QMessageDialogOptions::~QMessageDialogOptions ( )
protected

Definition at line 789 of file qplatformdialoghelper.cpp.

Member Function Documentation

◆ addButton()

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

Definition at line 883 of file qplatformdialoghelper.cpp.

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

+ Here is the call graph for this function:

◆ checkBoxLabel()

QString QMessageDialogOptions::checkBoxLabel ( ) const

◆ checkBoxState()

Qt::CheckState QMessageDialogOptions::checkBoxState ( ) const

Definition at line 923 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::checkBoxState.

Referenced by QCocoaMessageDialog::show().

+ Here is the caller graph for this function:

◆ clone()

QSharedPointer< QMessageDialogOptions > QMessageDialogOptions::clone ( ) const

Definition at line 808 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 803 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 906 of file qplatformdialoghelper.cpp.

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

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

+ 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 901 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::customButtons.

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

+ Here is the caller graph for this function:

◆ detailedText()

QString QMessageDialogOptions::detailedText ( ) const

Definition at line 863 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:

◆ iconPixmap()

QPixmap QMessageDialogOptions::iconPixmap ( ) const

Definition at line 838 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 853 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 945 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 896 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 912 of file qplatformdialoghelper.cpp.

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

Referenced by QMessageBoxPrivate::helperPrepareShow().

+ Here is the caller graph for this function:

◆ setDetailedText()

void QMessageDialogOptions::setDetailedText ( const QString text)

Definition at line 868 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:

◆ setIconPixmap()

void QMessageDialogOptions::setIconPixmap ( const QPixmap pixmap)

Definition at line 833 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 858 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 928 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 939 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 873 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 828 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 848 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 818 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 878 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 823 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 934 of file qplatformdialoghelper.cpp.

References QMessageDialogOptionsPrivate::options.

◆ text()

QString QMessageDialogOptions::text ( ) const

Definition at line 843 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 813 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: