diff options
author | MÃ¥rten Nordheim <marten.nordheim@qt.io> | 2022-03-04 13:47:27 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-07 13:01:32 +0000 |
commit | 3054c9b790d8de46b301019f54e01d3e49ca2a8b (patch) | |
tree | 243ec8f89099ccf2261c9c709b06c3e8777a5507 | |
parent | e0244a275c804e9faa26e69c43d3ed1de4314d4f (diff) |
QPrintDialog/win: Fix use of deprecated QMessageBox::warning
by using the new one
Change-Id: I8779107079c4e3d4b1d48c05b6fbfef1b6e98b99
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 76016d99486778ae21b2d6eca242e46254239a6d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/printsupport/dialogs/qprintdialog_win.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/printsupport/dialogs/qprintdialog_win.cpp b/src/printsupport/dialogs/qprintdialog_win.cpp index 8015d28a1f..783ef242ce 100644 --- a/src/printsupport/dialogs/qprintdialog_win.cpp +++ b/src/printsupport/dialogs/qprintdialog_win.cpp @@ -261,9 +261,9 @@ int QPrintDialogPrivate::openWindowsPrintDialogModally() } if (!done) { - QMessageBox::warning(0, QPrintDialog::tr("Print"), - QPrintDialog::tr("The 'From' value cannot be greater than the 'To' value."), - QPrintDialog::tr("OK")); + QMessageBox::warning(nullptr, + QPrintDialog::tr("Print"), + QPrintDialog::tr("The 'From' value cannot be greater than the 'To' value.")); } } while (!done); |