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>.
|
Static Public Member Functions | |
static int | showOldMessageBox (QWidget *parent, QMessageBox::Icon icon, const QString &title, const QString &text, int button0, int button1, int button2) |
static int | showOldMessageBox (QWidget *parent, QMessageBox::Icon icon, const QString &title, const QString &text, const QString &button0Text, const QString &button1Text, const QString &button2Text, int defaultButtonNumber, int escapeButtonNumber) |
static QMessageBox::StandardButton | showNewMessageBox (QWidget *parent, QMessageBox::Icon icon, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) |
static QPixmap | standardIcon (QMessageBox::Icon icon, QMessageBox *mb) |
static QMessageBox::StandardButton | standardButtonForRole (QMessageBox::ButtonRole role) |
Static Public Member Functions inherited from QWidgetPrivate | |
static QWidgetPrivate * | get (QWidget *w) |
static const QWidgetPrivate * | get (const QWidget *w) |
static void | checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight) |
static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr) |
static QWidget * | parentGraphicsView (const QWidget *widget) |
static QRect | screenGeometry (const QWidget *widget) |
static QRect | availableScreenGeometry (const QWidget *widget) |
static QScreen * | screen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static QRect | screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static QRect | availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static void | sendComposeStatus (QWidget *w, bool end) |
static void | setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent) |
static bool | insertIntoFocusChain (const QWidgetList &toBeInserted, FocusDirection direction, QWidget *position) |
static QWidgetList | takeFromFocusChain (QWidget *from, QWidget *to, FocusDirection direction=FocusDirection::Next) |
Static Public Member Functions inherited from QObjectPrivate | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Private Member Functions | |
void | initHelper (QPlatformDialogHelper *) override |
void | helperPrepareShow (QPlatformDialogHelper *) override |
int | dialogCode () const override |
Definition at line 180 of file qmessagebox.cpp.
|
inline |
Definition at line 185 of file qmessagebox.cpp.
QAbstractButton * QMessageBoxPrivate::abstractButtonForId | ( | int | id | ) | const |
Definition at line 2119 of file qmessagebox.cpp.
References customButtonList, QMessageBox::FlagMask, newButton(), and QList< T >::value().
void QMessageBoxPrivate::addOldButtons | ( | int | button0, |
int | button1, | ||
int | button2 ) |
Definition at line 2107 of file qmessagebox.cpp.
References compatMode, QMessageBox::Default, detectedCompat(), QMessageBox::Escape, findButton(), and newButton().
void QMessageBoxPrivate::buttonClicked | ( | QAbstractButton * | button | ) |
Definition at line 493 of file qmessagebox.cpp.
References button, QByteArray::clear(), detailsButton, QObject::disconnect(), HideLabel, memberToDisconnectOnClose, receiverToDisconnectOnClose, setClickedButton(), DetailButton::setLabel(), ShowLabel, signalToDisconnectOnClose, and updateSize().
Referenced by init().
|
overridevirtual |
Reimplemented from QDialogPrivate.
Definition at line 2841 of file qmessagebox.cpp.
References Qt::AA_DontUseNativeDialogs, buttonBox, QDialogButtonBox::buttons(), QDialogPrivate::canBeNativeDialog(), className, QMessageDialogOptions::DontUseNativeDialog, QDialogPrivate::nativeDialogInUse, QMessageDialogOptions::options(), options, pushButton, QObjectData::q_ptr, QCoreApplication::testAttribute(), Qt::WA_DontShowOnScreen, and Qt::WA_StyleSheet.
Referenced by setVisible().
void QMessageBoxPrivate::detectEscapeButton | ( | ) |
Definition at line 1102 of file qmessagebox.cpp.
References button, QDialogButtonBox::button(), buttonBox, QDialogButtonBox::buttonRole(), QDialogButtonBox::buttons(), QDialogButtonBox::Cancel, detailsButton, detectedEscapeButton, escapeButton, QDialogButtonBox::NoRole, and QDialogButtonBox::RejectRole.
Referenced by setVisible().
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 471 of file qmessagebox.cpp.
References QDialog::Accepted, QMessageBox::AcceptRole, clickedButton, QDialogPrivate::dialogCode(), QMessageBox::NoRole, QDialog::Rejected, QMessageBox::RejectRole, QDialogPrivate::rescode, and QMessageBox::YesRole.
int QMessageBoxPrivate::execReturnCode | ( | QAbstractButton * | button | ) |
Definition at line 448 of file qmessagebox.cpp.
References QDialog::Accepted, button, buttonBox, compatMode, customButtonList, QListSpecialMethodsBase< T >::indexOf(), oldButton(), and QDialogButtonBox::standardButton().
Referenced by setClickedButton().
QAbstractButton * QMessageBoxPrivate::findButton | ( | int | button0, |
int | button1, | ||
int | button2, | ||
int | flags ) |
Definition at line 2092 of file qmessagebox.cpp.
References button, and newButton().
Referenced by addOldButtons().
void QMessageBoxPrivate::helperClicked | ( | QPlatformDialogHelper::StandardButton | button, |
QPlatformDialogHelper::ButtonRole | role ) |
Definition at line 527 of file qmessagebox.cpp.
References QMessageDialogOptions::CustomButton::button, QMessageDialogOptions::customButton(), QPlatformDialogHelper::LastButton, options, Q_ASSERT, and Q_UNUSED.
Referenced by initHelper().
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 2871 of file qmessagebox.cpp.
References QMessageDialogOptions::addButton(), button, QDialogButtonBox::button(), buttonBox, QDialogButtonBox::buttonRole(), checkbox, QCheckBox::checkState(), QMessageDialogOptions::clearCustomButtons(), customButtonList, defaultButton, detailsButton, detectedEscapeButton, QDialogButtonBox::FirstButton, helperIcon(), helperStandardButtons(), QDialogButtonBox::LastButton, options, QGuiApplicationPrivate::platformTheme(), QMessageDialogOptions::setCheckBox(), QMessageDialogOptions::setDefaultButton(), QMessageDialogOptions::setDetailedText(), QMessageDialogOptions::setEscapeButton(), QMessageDialogOptions::setIconPixmap(), QMessageDialogOptions::setInformativeText(), QMessageDialogOptions::setStandardButtons(), QMessageDialogOptions::setStandardIcon(), QMessageDialogOptions::setText(), QMessageDialogOptions::setWindowTitle(), and QAbstractButton::text.
void QMessageBoxPrivate::init | ( | const QString & | title = QString(), |
const QString & | text = QString() ) |
Definition at line 258 of file qmessagebox.cpp.
References Qt::AlignLeft, Qt::AlignVCenter, buttonBox, buttonClicked(), QDialogButtonBox::clicked(), QObjectPrivate::connect(), QSizePolicy::Fixed, icon, iconLabel, QString::isEmpty(), QMessageBox::NoIcon, QFont::setBold(), QDialogButtonBox::setCenterButtons(), QObject::setObjectName(), QWidget::setSizePolicy(), setupLayout(), QStyle::SH_MessageBox_CenterButtons, QStyle::SH_MessageBox_TextInteractionFlags, text, and title.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 2802 of file qmessagebox.cpp.
References checkbox, QPlatformMessageDialogHelper::checkBoxStateChanged(), QPlatformMessageDialogHelper::clicked(), QObject::connect(), QObjectPrivate::connect(), helperClicked(), options, QObjectData::q_ptr, QCheckBox::setCheckState(), and state.
int QMessageBoxPrivate::layoutMinimumWidth | ( | ) |
Definition at line 343 of file qmessagebox.cpp.
References QLayout::activate(), QWidgetPrivate::layout, QLayout::totalMinimumSize(), and QSize::width().
Referenced by updateSize().
void QMessageBoxPrivate::retranslateStrings | ( | ) |
Definition at line 2164 of file qmessagebox.cpp.
References detailsButton, HideLabel, DetailButton::setLabel(), and ShowLabel.
Referenced by setupLayout().
void QMessageBoxPrivate::setClickedButton | ( | QAbstractButton * | button | ) |
Definition at line 516 of file qmessagebox.cpp.
References button, clickedButton, emit, and execReturnCode().
Referenced by buttonClicked().
void QMessageBoxPrivate::setupLayout | ( | ) |
Definition at line 290 of file qmessagebox.cpp.
References QGridLayout::addItem(), QGridLayout::addWidget(), Qt::AlignLeft, Qt::AlignTop, buttonBox, checkbox, QGridLayout::columnCount(), QSizePolicy::Fixed, iconLabel, informativeLabel, QPixmap::isNull(), QLabel::pixmap, retranslateStrings(), QGridLayout::rowCount(), QLayout::setContentsMargins(), QWidget::setContentsMargins(), QGridLayout::setHorizontalSpacing(), QLayout::SetNoConstraint, QGridLayout::setRowMinimumHeight(), QGridLayout::setRowStretch(), QLayout::setSizeConstraint(), QGridLayout::setVerticalSpacing(), QWidget::setVisible(), and updateSize().
Referenced by init().
|
overridevirtual |
Reimplemented from QDialogPrivate.
Definition at line 1684 of file qmessagebox.cpp.
References autoAddOkButton, canBeNativeDialog(), detectEscapeButton(), QDialogPrivate::nativeDialogInUse, QMessageBox::Ok, QDialogPrivate::setNativeDialogVisible(), QDialogPrivate::setVisible(), and Qt::WA_DontShowOnScreen.
|
static |
|
static |
Definition at line 2139 of file qmessagebox.cpp.
References QMessageBox::ActionRole, QMessageBox::addButton(), QDialog::exec(), icon, messageBox, QMessageBox::NoButton, QObjectData::parent, QMessageBox::setDefaultButton(), QMessageBox::setEscapeButton(), text, and title.
|
static |
Definition at line 2130 of file qmessagebox.cpp.
References QDialog::exec(), icon, messageBox, QMessageBox::NoButton, QObjectData::parent, text, and title.
Referenced by showNewMessageBox().
|
static |
Definition at line 914 of file qmessagebox.cpp.
References QMessageBox::AcceptRole, QMessageBox::Apply, QMessageBox::ApplyRole, QMessageBox::Cancel, QMessageBox::DestructiveRole, QMessageBox::Discard, QMessageBox::Help, QMessageBox::HelpRole, QMessageBox::No, QMessageBox::NoButton, QMessageBox::NoRole, QMessageBox::Ok, QMessageBox::RejectRole, QMessageBox::Reset, QMessageBox::ResetRole, QMessageBox::Yes, and QMessageBox::YesRole.
Referenced by QMessageBox::addButton().
|
static |
Definition at line 2774 of file qmessagebox.cpp.
References QMessageBox::Critical, dpr(), icon, iconSize, QMessageBox::Information, QStyle::pixelMetric(), QStyle::PM_MessageBoxIconSize, qApp, QMessageBox::Question, QStyle::SP_MessageBoxCritical, QStyle::SP_MessageBoxInformation, QStyle::SP_MessageBoxQuestion, QStyle::SP_MessageBoxWarning, QStyle::standardIcon(), QApplication::style(), and QMessageBox::Warning.
Referenced by QMessageBox::setIcon().
void QMessageBoxPrivate::updateSize | ( | ) |
Definition at line 349 of file qmessagebox.cpp.
References QLayout::activate(), QApplication::font(), QLayoutItem::hasHeightForWidth(), QSize::height(), QSizePolicy::Ignored, informativeLabel, QWidgetPrivate::layout, layoutMinimumWidth(), QEvent::LayoutRequest, QSizePolicy::Minimum, opt, policy, QSizePolicy::Preferred, qMax(), qMin(), QCoreApplication::removePostedEvents(), QSizePolicy::setHeightForWidth(), QWidget::setSizePolicy(), QLayout::totalHeightForWidth(), QLayout::totalMinimumSize(), QSize::width(), and QTextOption::WrapAnywhere.
Referenced by buttonClicked(), and setupLayout().
bool QMessageBoxPrivate::autoAddOkButton |
Definition at line 245 of file qmessagebox.cpp.
Referenced by setVisible().
QDialogButtonBox* QMessageBoxPrivate::buttonBox |
Definition at line 234 of file qmessagebox.cpp.
Referenced by canBeNativeDialog(), detectEscapeButton(), execReturnCode(), helperPrepareShow(), init(), and setupLayout().
QCheckBox* QMessageBoxPrivate::checkbox |
Definition at line 238 of file qmessagebox.cpp.
Referenced by helperPrepareShow(), initHelper(), and setupLayout().
QAbstractButton* QMessageBoxPrivate::clickedButton |
Definition at line 239 of file qmessagebox.cpp.
Referenced by dialogCode(), and setClickedButton().
bool QMessageBoxPrivate::compatMode |
Definition at line 244 of file qmessagebox.cpp.
Referenced by addOldButtons(), and execReturnCode().
QList<QAbstractButton *> QMessageBoxPrivate::customButtonList |
Definition at line 235 of file qmessagebox.cpp.
Referenced by abstractButtonForId(), execReturnCode(), and helperPrepareShow().
QPushButton* QMessageBoxPrivate::defaultButton |
Definition at line 237 of file qmessagebox.cpp.
Referenced by helperPrepareShow().
DetailButton* QMessageBoxPrivate::detailsButton |
Definition at line 240 of file qmessagebox.cpp.
Referenced by buttonClicked(), detectEscapeButton(), helperPrepareShow(), and retranslateStrings().
QAbstractButton* QMessageBoxPrivate::detectedEscapeButton |
Definition at line 246 of file qmessagebox.cpp.
Referenced by detectEscapeButton(), and helperPrepareShow().
QAbstractButton* QMessageBoxPrivate::escapeButton |
Definition at line 236 of file qmessagebox.cpp.
Referenced by detectEscapeButton().
QMessageBox::Icon QMessageBoxPrivate::icon |
Definition at line 232 of file qmessagebox.cpp.
Referenced by init(), showOldMessageBox(), showOldMessageBox(), and standardIcon().
QLabel* QMessageBoxPrivate::iconLabel |
Definition at line 233 of file qmessagebox.cpp.
Referenced by init(), and setupLayout().
QLabel* QMessageBoxPrivate::informativeLabel |
Definition at line 247 of file qmessagebox.cpp.
Referenced by setupLayout(), and updateSize().
QLabel* QMessageBoxPrivate::label |
Definition at line 231 of file qmessagebox.cpp.
QByteArray QMessageBoxPrivate::memberToDisconnectOnClose |
Definition at line 249 of file qmessagebox.cpp.
Referenced by buttonClicked().
QSharedPointer<QMessageDialogOptions> QMessageBoxPrivate::options |
Definition at line 251 of file qmessagebox.cpp.
Referenced by canBeNativeDialog(), helperClicked(), helperPrepareShow(), and initHelper().
Definition at line 248 of file qmessagebox.cpp.
Referenced by buttonClicked().
QByteArray QMessageBoxPrivate::signalToDisconnectOnClose |
Definition at line 250 of file qmessagebox.cpp.
Referenced by buttonClicked().