From 0034e1af4acf48d38670b733a095794301cafdd2 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 23 Jul 2013 15:57:59 +0200 Subject: QPrintDialog: document the modality on OS X and Windows You can't programmatically close the dialog because it's modal. Task-number: QTBUG-32464 (backported from qtbase/bd602a2dc4bc9491f80919b09a8990edb6fbee97) Change-Id: Ib7573b347b3f10914e60af05f95ed9f5763eadd8 Reviewed-by: Shawn Rutledge Reviewed-by: Andy Shaw --- src/gui/dialogs/qabstractprintdialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/dialogs') diff --git a/src/gui/dialogs/qabstractprintdialog.cpp b/src/gui/dialogs/qabstractprintdialog.cpp index 22a311de0f..f8a613102f 100644 --- a/src/gui/dialogs/qabstractprintdialog.cpp +++ b/src/gui/dialogs/qabstractprintdialog.cpp @@ -458,6 +458,10 @@ void QAbstractPrintDialog::setOptionTabs(const QList &tabs) is shown with exec(), done() causes the local event loop to finish, and exec() to return \a result. + \note This function does not apply to the Native Print Dialog on the Mac + OS X and Windows platforms, because the dialog is required to be modal + and only the user can close it. + \sa QDialog::done() */ void QPrintDialog::done(int result) -- cgit v1.2.3