diff options
author | Thorbjørn Martsum <tmartsum@gmail.com> | 2013-06-10 07:30:01 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-20 22:02:00 +0200 |
commit | 3e87d7e81458a8622ae461ed03d881a17aade41c (patch) | |
tree | 50cdff0d9afa1c35f761ed571a6993fbec43c626 /src/widgets/dialogs/qmessagebox.h | |
parent | 16c47c3b343e2024cce3acd50f2dfe10ae5c40c7 (diff) |
QMessageBox - make it possible to have a checkbox on the dialog
This (partly) solves
Task-number: QTBUG-2450
Change-Id: Ie2280c87b96e72acc76e806a83c4e8cc0d4e4ee4
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/widgets/dialogs/qmessagebox.h')
-rw-r--r-- | src/widgets/dialogs/qmessagebox.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/dialogs/qmessagebox.h b/src/widgets/dialogs/qmessagebox.h index c7c42b1e7a..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 { @@ -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); |