Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QMessageBoxPrivate Class Reference
+ Inheritance diagram for QMessageBoxPrivate:
+ Collaboration diagram for QMessageBoxPrivate:

Public Member Functions

 QMessageBoxPrivate ()
 
void init (const QString &title=QString(), const QString &text=QString())
 
void setupLayout ()
 
void _q_buttonClicked (QAbstractButton *)
 
void _q_helperClicked (QPlatformDialogHelper::StandardButton button, QPlatformDialogHelper::ButtonRole role)
 
void setClickedButton (QAbstractButton *button)
 
QAbstractButtonfindButton (int button0, int button1, int button2, int flags)
 
void addOldButtons (int button0, int button1, int button2)
 
QAbstractButtonabstractButtonForId (int id) const
 
int execReturnCode (QAbstractButton *button)
 
void detectEscapeButton ()
 
void updateSize ()
 
int layoutMinimumWidth ()
 
void retranslateStrings ()
 
void setVisible (bool visible) override
 
bool canBeNativeDialog () const override
 
- Public Member Functions inherited from QDialogPrivate
 QDialogPrivate ()
 
 ~QDialogPrivate ()
 
virtual void setVisible (bool visible)
 
QWindowtransientParentWindow () const
 
bool setNativeDialogVisible (bool visible)
 
QVariant styleHint (QPlatformDialogHelper::StyleHint hint) const
 
void resetModalitySetByOpen ()
 
QPlatformDialogHelperplatformHelper () const
 
virtual bool canBeNativeDialog () const
 
void close (int resultCode)
 
- Public Member Functions inherited from QWidgetPrivate
 QWidgetPrivate (int version=QObjectPrivateVersion)
 
 ~QWidgetPrivate ()
 
QWExtraextraData () const
 
QTLWExtratopData () const
 
QTLWExtramaybeTopData () const
 
QPaintersharedPainter () const
 
void setSharedPainter (QPainter *painter)
 
QWidgetRepaintManagermaybeRepaintManager () const
 
QWindowwindowHandle (WindowHandleMode mode=WindowHandleMode::Direct) const
 
QWindow_q_closestWindowHandle () const
 
QScreenassociatedScreen () const
 
template<typename T >
void repaint (T t)
 
template<typename T >
void update (T t)
 
void init (QWidget *desktopWidget, Qt::WindowFlags f)
 
void create ()
 
void createRecursively ()
 
void createWinId ()
 
bool setScreenForPoint (const QPoint &pos)
 
bool setScreen (QScreen *screen)
 
void createTLExtra ()
 
void createExtra ()
 
void deleteExtra ()
 
void createSysExtra ()
 
void deleteSysExtra ()
 
void createTLSysExtra ()
 
void deleteTLSysExtra ()
 
void updateSystemBackground ()
 
void propagatePaletteChange ()
 
void setPalette_helper (const QPalette &)
 
void resolvePalette ()
 
QPalette naturalWidgetPalette (QPalette::ResolveMask inheritedMask) const
 
void setMask_sys (const QRegion &)
 
void raise_sys ()
 
void lower_sys ()
 
void stackUnder_sys (QWidget *)
 
QWidgetdeepestFocusProxy () const
 
void setFocus_sys ()
 
void updateFocusChild ()
 
void updateFont (const QFont &)
 
void setFont_helper (const QFont &font)
 
QFont localFont () const
 
void resolveFont ()
 
QFont naturalWidgetFont (uint inheritedMask) const
 
void setLayoutDirection_helper (Qt::LayoutDirection)
 
void resolveLayoutDirection ()
 
void setLocale_helper (const QLocale &l, bool forceUpdate=false)
 
void resolveLocale ()
 
void setStyle_helper (QStyle *newStyle, bool propagate)
 
void inheritStyle ()
 
void setUpdatesEnabled_helper (bool)
 
bool updateBrushOrigin (QPainter *, const QBrush &brush) const
 
void paintBackground (QPainter *, const QRegion &, DrawWidgetFlags flags=DrawAsRoot) const
 
bool isAboutToShow () const
 The graphicsEffect function returns a pointer to the widget's graphics effect.
 
QRegion prepareToRender (const QRegion &region, QWidget::RenderFlags renderFlags)
 
void render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter=nullptr, QWidgetRepaintManager *repaintManager=nullptr)
 
void sendPaintEvent (const QRegion &toBePainted)
 
void paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter, QWidgetRepaintManager *repaintManager)
 
bool shouldPaintOnScreen () const
 
void paintOnScreen (const QRegion &rgn)
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void setSystemClip (QPaintEngine *paintEngine, qreal devicePixelRatio, const QRegion &region)
 
void subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const
 
void subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=nullptr, bool alsoNonOpaque=false) const
 
void clipToEffectiveMask (QRegion &region) const
 
void updateIsOpaque ()
 
void setOpaque (bool opaque)
 
void updateIsTranslucent ()
 
const QRegiongetOpaqueChildren () const
 
void setDirtyOpaqueRegion ()
 
bool close ()
 
bool handleClose (CloseMode mode)
 
void setWindowIcon_helper ()
 
void setWindowIcon_sys ()
 
void setWindowOpacity_sys (qreal opacity)
 
void adjustQuitOnCloseAttribute ()
 
void scrollChildren (int dx, int dy)
 
void moveRect (const QRect &, int dx, int dy)
 
void scrollRect (const QRect &, int dx, int dy)
 
void invalidateBackingStore_resizeHelper (const QPoint &oldPos, const QSize &oldSize)
 Invalidates the backing store when the widget is resized.
 
template<class T >
void invalidateBackingStore (const T &)
 
QRegion overlappedRegion (const QRect &rect, bool breakAfterFirst=false) const
 
bool isOverlapped (const QRect &rect) const
 
void syncBackingStore ()
 
void syncBackingStore (const QRegion &region)
 
bool shouldDiscardSyncRequest () const
 
void updateWidgetTransform (QEvent *event)
 
void reparentFocusWidgets (QWidget *oldtlw)
 
void setWinId (WId)
 
void showChildren (bool spontaneous)
 
void hideChildren (bool spontaneous)
 
void setParent_sys (QWidget *parent, Qt::WindowFlags)
 
void scroll_sys (int dx, int dy)
 
void scroll_sys (int dx, int dy, const QRect &r)
 
void deactivateWidgetCleanup ()
 
void setGeometry_sys (int, int, int, int, bool)
 
void fixPosIncludesFrame ()
 
void sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false)
 
void activateChildLayoutsRecursively ()
 
void show_recursive ()
 
void show_helper ()
 
void show_sys ()
 
void hide_sys ()
 
void hide_helper ()
 
void _q_showIfNotHidden ()
 
void setVisible (bool)
 
void setEnabled_helper (bool)
 
void updateFrameStrut ()
 
QRect frameStrut () const
 
void setWindowIconText_sys (const QString &cap)
 
void setWindowIconText_helper (const QString &cap)
 
void setWindowTitle_sys (const QString &cap)
 
void setWindowFilePath_sys (const QString &filePath)
 
void setCursor_sys (const QCursor &cursor)
 
void unsetCursor_sys ()
 
void setWindowTitle_helper (const QString &cap)
 
void setWindowFilePath_helper (const QString &filePath)
 
void setWindowModified_helper ()
 
virtual void setWindowFlags (Qt::WindowFlags windowFlags)
 
bool setMinimumSize_helper (int &minw, int &minh)
 
bool setMaximumSize_helper (int &maxw, int &maxh)
 
void setConstraints_sys ()
 
bool pointInsideRectAndMask (const QPoint &) const
 
QWidgetchildAt_helper (const QPoint &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPoint &p, bool) const
 
void updateGeometry_helper (bool forceUpdate)
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
void setLayoutItemMargins (int left, int top, int right, int bottom)
 
void setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=nullptr)
 
void updateContentsRect ()
 
QMargins safeAreaMargins () const
 
virtual void aboutToDestroy ()
 
QWidgeteffectiveFocusWidget ()
 
void setModal_sys ()
 
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
 
QPaintDeviceredirected (QPoint *offset) const
 
void restoreRedirected ()
 
void enforceNativeChildren ()
 
bool nativeChildrenForced () const
 
QRect effectiveRectFor (const QRegion &region) const
 
QRect effectiveRectFor (const QRect &rect) const
 
QSize adjustedSize () const
 
void handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus)
 
void handleSoftwareInputPanel (bool clickCausedFocus=false)
 
void setWSGeometry ()
 
QPoint mapToWS (const QPoint &p) const
 
QPoint mapFromWS (const QPoint &p) const
 
QRect mapToWS (const QRect &r) const
 
QRect mapFromWS (const QRect &r) const
 
virtual QObjectfocusObject ()
 
virtual QPlatformBackingStoreRhiConfig rhiConfig () const
 
virtual TextureData texture () const
 
virtual QPlatformTextureList::Flags textureListFlags ()
 
virtual QImage grabFramebuffer ()
 
virtual void beginBackingStorePainting ()
 
virtual void endBackingStorePainting ()
 
virtual void beginCompose ()
 
virtual void endCompose ()
 
void setRenderToTexture ()
 
void setTextureChildSeen ()
 
virtual void initializeViewportFramebuffer ()
 
virtual void resizeViewportFramebuffer ()
 
virtual void resolveSamples ()
 
virtual bool isStereoEnabled ()
 
virtual bool toggleStereoTargetBuffer ()
 
std::string flagsForDumping () const override
 
void setNetWmWindowTypes (bool skipIfMissing=false)
 
bool stealKeyboardGrab (bool grab)
 
bool stealMouseGrab (bool grab)
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

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 QWidgetPrivateget (QWidget *w)
 
static const QWidgetPrivateget (const QWidget *w)
 
static void checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight)
 
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr)
 
static QWidgetparentGraphicsView (const QWidget *widget)
 
static QRect screenGeometry (const QWidget *widget)
 
static QRect availableScreenGeometry (const QWidget *widget)
 
static QScreenscreen (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 Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (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)
 

Public Attributes

QLabellabel
 
QMessageBox::Icon icon
 
QLabeliconLabel
 
QDialogButtonBoxbuttonBox
 
QList< QAbstractButton * > customButtonList
 
QAbstractButtonescapeButton
 
QPushButtondefaultButton
 
QCheckBoxcheckbox
 
QAbstractButtonclickedButton
 
DetailButtondetailsButton
 
bool compatMode
 
bool autoAddOkButton
 
QAbstractButtondetectedEscapeButton
 
QLabelinformativeLabel
 
QPointer< QObjectreceiverToDisconnectOnClose
 
QByteArray memberToDisconnectOnClose
 
QByteArray signalToDisconnectOnClose
 
QSharedPointer< QMessageDialogOptionsoptions
 
- Public Attributes inherited from QDialogPrivate
Qt::Orientation orientation
 
QWidgetextension
 
bool doShowExtension
 
QSize size
 
QSize min
 
QSize max
 
QPoint lastRMBPress
 
int rescode
 
int resetModalityTo
 
bool wasModalitySet
 
QPointer< QEventLoopeventLoop
 
bool nativeDialogInUse
 
- Public Attributes inherited from QWidgetPrivate
std::unique_ptr< QWExtraextra
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QWidgetfocus_child
 
QLayoutlayout
 
QRegionneedsFlush
 
QPaintDeviceredirectDev
 
QWidgetItemV2widgetItem
 
QPaintEngineextraPaintEngine
 
const QMetaObjectpolished
 
QGraphicsEffectgraphicsEffect
 
Qt::InputMethodHints imHints
 
QRegion opaqueChildren
 
QRegion dirty
 
uint directFontResolveMask
 
uint inheritedFontResolveMask
 
decltype(std::declval< QPalette >().resolveMask()) directPaletteResolveMask
 
QPalette::ResolveMask inheritedPaletteResolveMask
 
short leftmargin
 
short topmargin
 
short rightmargin
 
short bottommargin
 
signed char leftLayoutItemMargin
 
signed char topLayoutItemMargin
 
signed char rightLayoutItemMargin
 
signed char bottomLayoutItemMargin
 
Qt::HANDLE hd
 
QWidgetData data
 
QSizePolicy size_policy
 
QLocale locale
 
QPoint redirectOffset
 
QList< QAction * > actions
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
uint high_attributes [4]
 
QPalette::ColorRole fg_role: 8
 
QPalette::ColorRole bg_role: 8
 
uint dirtyOpaqueChildren: 1
 
uint isOpaque: 1
 
uint retainSizeWhenHiddenChanged: 1
 
uint inDirtyList: 1
 
uint isScrolled: 1
 
uint isMoved: 1
 
uint usesDoubleBufferedGLContext: 1
 
uint mustHaveWindowHandle: 1
 
uint renderToTexture: 1
 
uint textureChildSeen: 1
 
uint inheritsInputMethodHints: 1
 
uint renderToTextureReallyDirty: 1
 
uint usesRhiFlush: 1
 
uint childrenHiddenByWState: 1
 
uint childrenShownByExpose: 1
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint unused: 21
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Private Member Functions

void initHelper (QPlatformDialogHelper *) override
 
void helperPrepareShow (QPlatformDialogHelper *) override
 
int dialogCode () const override
 

Additional Inherited Members

- Public Types inherited from QWidgetPrivate
enum  DrawWidgetFlag {
  DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 ,
  DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 ,
  UseEffectRegionBounds = 0x100
}
 
enum  Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 }
 
enum class  WindowHandleMode { Direct , Closest , TopLevel }
 
enum  CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData >
 
- Static Public Attributes inherited from QWidgetPrivate
static QWidgetMappermapper = nullptr
 
static QWidgetSetallWidgets = nullptr
 
static int instanceCounter = 0
 
static int maxInstances = 0
 
virtual int dialogCode () const
 

Detailed Description

Definition at line 165 of file qmessagebox.cpp.

Constructor & Destructor Documentation

◆ QMessageBoxPrivate()

QMessageBoxPrivate::QMessageBoxPrivate ( )
inline

Definition at line 170 of file qmessagebox.cpp.

Member Function Documentation

◆ _q_buttonClicked()

void QMessageBoxPrivate::_q_buttonClicked ( QAbstractButton button)

Definition at line 464 of file qmessagebox.cpp.

References button, QByteArray::clear(), detailsButton, QObject::disconnect(), HideLabel, memberToDisconnectOnClose, receiverToDisconnectOnClose, setClickedButton(), DetailButton::setLabel(), ShowLabel, signalToDisconnectOnClose, and updateSize().

Referenced by init().

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

◆ _q_helperClicked()

void QMessageBoxPrivate::_q_helperClicked ( QPlatformDialogHelper::StandardButton  button,
QPlatformDialogHelper::ButtonRole  role 
)

Definition at line 498 of file qmessagebox.cpp.

References QMessageDialogOptions::CustomButton::button, QAbstractButton::click(), QMessageDialogOptions::customButton(), QPlatformDialogHelper::LastButton, options, Q_ASSERT, and Q_UNUSED.

Referenced by initHelper().

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

◆ abstractButtonForId()

QAbstractButton * QMessageBoxPrivate::abstractButtonForId ( int  id) const

Definition at line 2088 of file qmessagebox.cpp.

References customButtonList, QMessageBox::FlagMask, newButton(), and QList< T >::value().

+ Here is the call graph for this function:

◆ addOldButtons()

void QMessageBoxPrivate::addOldButtons ( int  button0,
int  button1,
int  button2 
)

Definition at line 2076 of file qmessagebox.cpp.

References compatMode, QMessageBox::Default, detectedCompat(), QMessageBox::Escape, findButton(), and newButton().

+ Here is the call graph for this function:

◆ canBeNativeDialog()

bool QMessageBoxPrivate::canBeNativeDialog ( ) const
overridevirtual

Reimplemented from QDialogPrivate.

Definition at line 2805 of file qmessagebox.cpp.

References Qt::AA_DontUseNativeDialogs, QDialogPrivate::canBeNativeDialog(), className, QMessageDialogOptions::DontUseNativeDialog, QDialogPrivate::nativeDialogInUse, QMessageDialogOptions::options(), options, QObjectData::q_ptr, QCoreApplication::testAttribute(), and Qt::WA_DontShowOnScreen.

Referenced by setVisible().

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

◆ detectEscapeButton()

void QMessageBoxPrivate::detectEscapeButton ( )

◆ dialogCode()

int QMessageBoxPrivate::dialogCode ( ) const
overrideprivatevirtual

Reimplemented from QDialogPrivate.

Definition at line 444 of file qmessagebox.cpp.

References QDialog::Accepted, QMessageBox::AcceptRole, clickedButton, QDialogPrivate::dialogCode(), QMessageBox::NoRole, QDialog::Rejected, QMessageBox::RejectRole, and QMessageBox::YesRole.

+ Here is the call graph for this function:

◆ execReturnCode()

int QMessageBoxPrivate::execReturnCode ( QAbstractButton button)

Definition at line 433 of file qmessagebox.cpp.

References button, buttonBox, compatMode, customButtonList, QListSpecialMethodsBase< T >::indexOf(), QMessageBox::NoButton, oldButton(), ret, and QDialogButtonBox::standardButton().

Referenced by setClickedButton().

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

◆ findButton()

QAbstractButton * QMessageBoxPrivate::findButton ( int  button0,
int  button1,
int  button2,
int  flags 
)

Definition at line 2061 of file qmessagebox.cpp.

References button, and newButton().

Referenced by addOldButtons().

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

◆ helperPrepareShow()

◆ init()

void QMessageBoxPrivate::init ( const QString title = QString(),
const QString text = QString() 
)

◆ initHelper()

void QMessageBoxPrivate::initHelper ( QPlatformDialogHelper h)
overrideprivatevirtual

Reimplemented from QDialogPrivate.

Definition at line 2765 of file qmessagebox.cpp.

References _q_helperClicked(), checkbox, QPlatformMessageDialogHelper::checkBoxStateChanged(), QObject::connect(), options, QCheckBox::setCheckState(), SIGNAL, SLOT, and state.

+ Here is the call graph for this function:

◆ layoutMinimumWidth()

int QMessageBoxPrivate::layoutMinimumWidth ( )

Definition at line 328 of file qmessagebox.cpp.

References QLayout::activate(), QWidgetPrivate::layout, QLayout::totalMinimumSize(), and QSize::width().

Referenced by updateSize().

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

◆ retranslateStrings()

void QMessageBoxPrivate::retranslateStrings ( )

Definition at line 2133 of file qmessagebox.cpp.

References detailsButton, HideLabel, DetailButton::setLabel(), and ShowLabel.

Referenced by setupLayout().

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

◆ setClickedButton()

void QMessageBoxPrivate::setClickedButton ( QAbstractButton button)

Definition at line 487 of file qmessagebox.cpp.

References button, clickedButton, emit, and execReturnCode().

Referenced by _q_buttonClicked().

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

◆ setupLayout()

void QMessageBoxPrivate::setupLayout ( )

Definition at line 275 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().

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

◆ setVisible()

void QMessageBoxPrivate::setVisible ( bool  visible)
overridevirtual

Reimplemented from QDialogPrivate.

Definition at line 1653 of file qmessagebox.cpp.

References canBeNativeDialog(), QDialogPrivate::nativeDialogInUse, QDialogPrivate::setNativeDialogVisible(), QDialogPrivate::setVisible(), Qt::WA_DontShowOnScreen, Qt::WA_WState_ExplicitShowHide, and Qt::WA_WState_Hidden.

+ Here is the call graph for this function:

◆ showNewMessageBox()

static QMessageBox::StandardButton QMessageBoxPrivate::showNewMessageBox ( QWidget parent,
QMessageBox::Icon  icon,
const QString title,
const QString text,
QMessageBox::StandardButtons  buttons,
QMessageBox::StandardButton  defaultButton 
)
static

◆ showOldMessageBox() [1/2]

int QMessageBoxPrivate::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

Definition at line 2108 of file qmessagebox.cpp.

References QMessageBox::ActionRole, QMessageBox::addButton(), QDialog::exec(), icon, QString::isEmpty(), messageBox, QMessageBox::NoButton, QObjectData::parent, QMessageBox::setDefaultButton(), QMessageBox::setEscapeButton(), text, title, and QList< T >::value().

+ Here is the call graph for this function:

◆ showOldMessageBox() [2/2]

int QMessageBoxPrivate::showOldMessageBox ( QWidget parent,
QMessageBox::Icon  icon,
const QString title,
const QString text,
int  button0,
int  button1,
int  button2 
)
static

Definition at line 2099 of file qmessagebox.cpp.

References QDialog::exec(), icon, messageBox, QMessageBox::NoButton, QObjectData::parent, text, and title.

Referenced by showNewMessageBox().

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

◆ standardButtonForRole()

QMessageBox::StandardButton QMessageBoxPrivate::standardButtonForRole ( QMessageBox::ButtonRole  role)
static

◆ standardIcon()

QPixmap QMessageBoxPrivate::standardIcon ( QMessageBox::Icon  icon,
QMessageBox mb 
)
static

Definition at line 2738 of file qmessagebox.cpp.

References QMessageBox::Critical, QPaintDevice::devicePixelRatio(), dpr(), icon, iconSize, QMessageBox::Information, QIcon::isNull(), QStyle::pixelMetric(), QIcon::pixmap(), QStyle::PM_MessageBoxIconSize, qApp, QMessageBox::Question, QStyle::SP_MessageBoxCritical, QStyle::SP_MessageBoxInformation, QStyle::SP_MessageBoxQuestion, QStyle::SP_MessageBoxWarning, QStyle::standardIcon(), QApplication::style(), QWidget::style(), and QMessageBox::Warning.

Referenced by QMessageBox::setIcon().

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

◆ updateSize()

void QMessageBoxPrivate::updateSize ( )

Definition at line 334 of file qmessagebox.cpp.

References QLayout::activate(), QApplication::font(), QLayoutItem::hasHeightForWidth(), QSize::height(), QFontMetrics::horizontalAdvance(), 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 _q_buttonClicked(), and setupLayout().

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

Member Data Documentation

◆ autoAddOkButton

bool QMessageBoxPrivate::autoAddOkButton

Definition at line 230 of file qmessagebox.cpp.

◆ buttonBox

QDialogButtonBox* QMessageBoxPrivate::buttonBox

Definition at line 219 of file qmessagebox.cpp.

Referenced by detectEscapeButton(), execReturnCode(), init(), and setupLayout().

◆ checkbox

QCheckBox* QMessageBoxPrivate::checkbox

Definition at line 223 of file qmessagebox.cpp.

Referenced by helperPrepareShow(), initHelper(), and setupLayout().

◆ clickedButton

QAbstractButton* QMessageBoxPrivate::clickedButton

Definition at line 224 of file qmessagebox.cpp.

Referenced by dialogCode(), and setClickedButton().

◆ compatMode

bool QMessageBoxPrivate::compatMode

Definition at line 229 of file qmessagebox.cpp.

Referenced by addOldButtons(), and execReturnCode().

◆ customButtonList

QList<QAbstractButton *> QMessageBoxPrivate::customButtonList

Definition at line 220 of file qmessagebox.cpp.

Referenced by abstractButtonForId(), and execReturnCode().

◆ defaultButton

QPushButton* QMessageBoxPrivate::defaultButton

Definition at line 222 of file qmessagebox.cpp.

◆ detailsButton

DetailButton* QMessageBoxPrivate::detailsButton

Definition at line 225 of file qmessagebox.cpp.

Referenced by _q_buttonClicked(), detectEscapeButton(), and retranslateStrings().

◆ detectedEscapeButton

QAbstractButton* QMessageBoxPrivate::detectedEscapeButton

Definition at line 231 of file qmessagebox.cpp.

Referenced by detectEscapeButton().

◆ escapeButton

QAbstractButton* QMessageBoxPrivate::escapeButton

Definition at line 221 of file qmessagebox.cpp.

Referenced by detectEscapeButton().

◆ icon

QMessageBox::Icon QMessageBoxPrivate::icon

Definition at line 217 of file qmessagebox.cpp.

Referenced by init(), showOldMessageBox(), showOldMessageBox(), and standardIcon().

◆ iconLabel

QLabel* QMessageBoxPrivate::iconLabel

Definition at line 218 of file qmessagebox.cpp.

Referenced by init(), and setupLayout().

◆ informativeLabel

QLabel* QMessageBoxPrivate::informativeLabel

Definition at line 232 of file qmessagebox.cpp.

Referenced by setupLayout(), and updateSize().

◆ label

QLabel* QMessageBoxPrivate::label

Definition at line 216 of file qmessagebox.cpp.

◆ memberToDisconnectOnClose

QByteArray QMessageBoxPrivate::memberToDisconnectOnClose

Definition at line 234 of file qmessagebox.cpp.

Referenced by _q_buttonClicked().

◆ options

QSharedPointer<QMessageDialogOptions> QMessageBoxPrivate::options

◆ receiverToDisconnectOnClose

QPointer<QObject> QMessageBoxPrivate::receiverToDisconnectOnClose

Definition at line 233 of file qmessagebox.cpp.

Referenced by _q_buttonClicked().

◆ signalToDisconnectOnClose

QByteArray QMessageBoxPrivate::signalToDisconnectOnClose

Definition at line 235 of file qmessagebox.cpp.

Referenced by _q_buttonClicked().


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