summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-05-20 10:16:11 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-05-20 10:17:47 (GMT)
commitb28e95cd2fbdd0f8ad5030e6fc3beede057548da (patch)
treed4ac1991c0f6615e15ece04512ddd9d5d12c6960
parentc02f3b1934a4ab300f593b91ee9fd302207a96f5 (diff)
downloadQt-b28e95cd2fbdd0f8ad5030e6fc3beede057548da.zip
Qt-b28e95cd2fbdd0f8ad5030e6fc3beede057548da.tar.gz
Qt-b28e95cd2fbdd0f8ad5030e6fc3beede057548da.tar.bz2
Remove bad documentation about window modality and QMessageBox.
QMessageBox is like QDialog. It doesn't have any extra magic with window modality on creation, so don't advertise that it does. The note about using message boxes as sheets is also updated.
-rw-r--r--src/gui/dialogs/qmessagebox.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/gui/dialogs/qmessagebox.cpp b/src/gui/dialogs/qmessagebox.cpp
index 5e59501..fb3bcb8 100644
--- a/src/gui/dialogs/qmessagebox.cpp
+++ b/src/gui/dialogs/qmessagebox.cpp
@@ -706,15 +706,10 @@ void QMessageBoxPrivate::_q_buttonClicked(QAbstractButton *button)
Constructs a message box with no text and no buttons. \a parent is
passed to the QDialog constructor.
- If \a parent is 0, the message box is an \l{Qt::ApplicationModal}
- {application modal} dialog box. If \a parent is a widget, the
- message box is \l{Qt::WindowModal} {window modal} relative to \a
- parent.
-
- On Mac OS X, if \a parent is not 0 and you want your message box
- to appear as a Qt::Sheet of that parent, set the message box's
- \l{setWindowModality()} {window modality} to Qt::WindowModal
- (default). Otherwise, the message box will be a standard dialog.
+ On Mac OS X, if you want your message box to appear
+ as a Qt::Sheet of its \a parent, set the message box's
+ \l{setWindowModality()} {window modality} to Qt::WindowModal or use open().
+ Otherwise, the message box will be a standard dialog.
*/
QMessageBox::QMessageBox(QWidget *parent)