QPrintDialog/win: Fix use of deprecated QMessageBox::warning

by using the new one

Pick-to: 6.3 6.2
Change-Id: I8779107079c4e3d4b1d48c05b6fbfef1b6e98b99
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
Mårten Nordheim 2022-03-04 13:47:27 +01:00
parent fd72c0d26c
commit 76016d9948
1 changed files with 3 additions and 3 deletions

View File

@ -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);