diff options
Diffstat (limited to 'src/widgets/dialogs/qmessagebox.h')
-rw-r--r-- | src/widgets/dialogs/qmessagebox.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/widgets/dialogs/qmessagebox.h b/src/widgets/dialogs/qmessagebox.h index 32b7027d89..58be13426c 100644 --- a/src/widgets/dialogs/qmessagebox.h +++ b/src/widgets/dialogs/qmessagebox.h @@ -52,6 +52,7 @@ QT_BEGIN_NAMESPACE class QLabel; class QMessageBoxPrivate; class QAbstractButton; +class QCheckBox; class Q_WIDGETS_EXPORT QMessageBox : public QDialog { @@ -95,7 +96,7 @@ public: }; enum StandardButton { - // keep this in sync with QDialogButtonBox::StandardButton + // keep this in sync with QDialogButtonBox::StandardButton and QMessageDialogOptions::StandardButton NoButton = 0x00000000, Ok = 0x00000400, Save = 0x00000800, @@ -188,6 +189,9 @@ public: void setTextInteractionFlags(Qt::TextInteractionFlags flags); Qt::TextInteractionFlags textInteractionFlags() const; + void setCheckBox(QCheckBox *cb); + QCheckBox* checkBox() const; + static StandardButton information(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton); |