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>.
|
#include <qplatformdialoghelper.h>
Classes | |
struct | CustomButton |
Public Types | |
enum class | Option { DontUseNativeDialog = 0x00000001 } |
enum | StandardIcon { NoIcon , Information , Warning , Critical , Question } |
Static Public Member Functions | |
static QSharedPointer< QMessageDialogOptions > | create () |
Protected Member Functions | |
QMessageDialogOptions (QMessageDialogOptionsPrivate *dd) | |
~QMessageDialogOptions () | |
Definition at line 398 of file qplatformdialoghelper.h.
|
strong |
Enumerator | |
---|---|
DontUseNativeDialog |
Definition at line 408 of file qplatformdialoghelper.h.
Enumerator | |
---|---|
NoIcon | |
Information | |
Warning | |
Critical | |
Question |
Definition at line 415 of file qplatformdialoghelper.h.
|
protected |
Definition at line 786 of file qplatformdialoghelper.cpp.
|
protected |
Definition at line 791 of file qplatformdialoghelper.cpp.
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().
QString QMessageDialogOptions::checkBoxLabel | ( | ) | const |
Definition at line 925 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::checkBoxLabel.
Qt::CheckState QMessageDialogOptions::checkBoxState | ( | ) | const |
Definition at line 930 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::checkBoxState.
void QMessageDialogOptions::clearCustomButtons | ( | ) |
Definition at line 908 of file qplatformdialoghelper.cpp.
References QList< T >::clear(), and QMessageDialogOptionsPrivate::customButtons.
Referenced by QMessageBoxPrivate::helperPrepareShow().
QSharedPointer< QMessageDialogOptions > QMessageDialogOptions::clone | ( | ) | const |
Definition at line 810 of file qplatformdialoghelper.cpp.
References QSharedPointer< T >::create().
|
static |
Definition at line 805 of file qplatformdialoghelper.cpp.
References QSharedPointer< T >::create().
Referenced by QErrorMessagePrivate::helperPrepareShow().
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().
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().
int QMessageDialogOptions::defaultButton | ( | ) | const |
Definition at line 940 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::defaultButtonId.
Referenced by QCocoaMessageDialog::show().
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().
int QMessageDialogOptions::escapeButton | ( | ) | const |
Definition at line 950 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::escapeButtonId.
Referenced by QCocoaMessageDialog::show().
QPixmap QMessageDialogOptions::iconPixmap | ( | ) | const |
Definition at line 840 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::iconPixmap.
Referenced by QCocoaMessageDialog::show().
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().
QMessageDialogOptions::Options QMessageDialogOptions::options | ( | ) | const |
Definition at line 972 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::options.
Referenced by QMessageBoxPrivate::canBeNativeDialog(), and setOptions().
QMessageDialogOptions::Q_FLAG | ( | Options | ) |
void QMessageDialogOptions::removeButton | ( | int | id | ) |
Definition at line 898 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::customButtons, and QList< T >::removeOne().
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().
void QMessageDialogOptions::setDefaultButton | ( | int | id | ) |
Definition at line 935 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::defaultButtonId.
Referenced by QMessageBoxPrivate::helperPrepareShow().
Definition at line 870 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::detailedText, and detailedText().
Referenced by QMessageBoxPrivate::helperPrepareShow(), QQuickLabsPlatformMessageDialog::setDetailedText(), and QQuickMessageDialog::setDetailedText().
void QMessageDialogOptions::setEscapeButton | ( | int | id | ) |
Definition at line 945 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::escapeButtonId.
Referenced by QMessageBoxPrivate::helperPrepareShow().
Definition at line 835 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::iconPixmap, and pixmap.
Referenced by QMessageBoxPrivate::helperPrepareShow().
Definition at line 860 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::informativeText, and informativeText().
Referenced by QMessageBoxPrivate::helperPrepareShow(), QQuickLabsPlatformMessageDialog::setInformativeText(), and QQuickMessageDialog::setInformativeText().
Definition at line 955 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::options, and setOptions().
Definition at line 966 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::options, and options().
Referenced by setOption().
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().
void QMessageDialogOptions::setStandardIcon | ( | StandardIcon | icon | ) |
Definition at line 830 of file qplatformdialoghelper.cpp.
References icon, and QMessageDialogOptionsPrivate::icon.
Referenced by QMessageBoxPrivate::helperPrepareShow().
Definition at line 850 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::text, and text().
Referenced by QMessageBoxPrivate::helperPrepareShow(), QQuickLabsPlatformMessageDialog::setText(), and QQuickMessageDialog::setText().
Definition at line 820 of file qplatformdialoghelper.cpp.
References title, and QMessageDialogOptionsPrivate::windowTitle.
Referenced by QMessageBoxPrivate::helperPrepareShow(), QQuickLabsPlatformMessageDialog::onShow(), and QQuickMessageDialog::onShow().
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().
QMessageDialogOptions::StandardIcon QMessageDialogOptions::standardIcon | ( | ) | const |
Definition at line 825 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::icon.
Referenced by QWidgetPlatformMessageDialog::show().
bool QMessageDialogOptions::testOption | ( | Option | option | ) | const |
Definition at line 961 of file qplatformdialoghelper.cpp.
References QMessageDialogOptionsPrivate::options.
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().
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().