summaryrefslogtreecommitdiffstats
path: root/examples/widgets/richtext/orderform
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-07 10:59:58 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-10 17:29:52 +0200
commit8186bd628f701744a528d83c22346abcd6c46384 (patch)
tree5230d30d57376e65241c6ee4dd9a18bb52888562 /examples/widgets/richtext/orderform
parent1b02cfd38de113ff7c68a28b72622b26c4cd8250 (diff)
Remove obsolete APIs and comments from QAbstractPrintDialog
Merging QAbstractPrintDialog with QPrintDialog, as proposed in the removed comment, seems to have little value, given that the platform specific implementations rely on the current abstraction. Adjust examples and tests; with the QAbstractPrintDialog test now testing the QPrintDialog::options API, the corresponding test function can be removed from the QPrinter test. Change-Id: Ia8906627898332e8590ea9b27e3d71dfcc6e8d71 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'examples/widgets/richtext/orderform')
-rw-r--r--examples/widgets/richtext/orderform/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/richtext/orderform/mainwindow.cpp b/examples/widgets/richtext/orderform/mainwindow.cpp
index ee6758c9cb..3916c28b1b 100644
--- a/examples/widgets/richtext/orderform/mainwindow.cpp
+++ b/examples/widgets/richtext/orderform/mainwindow.cpp
@@ -256,7 +256,7 @@ void MainWindow::printFile()
QPrintDialog dialog(&printer, this);
dialog.setWindowTitle(tr("Print Document"));
if (editor->textCursor().hasSelection())
- dialog.addEnabledOption(QAbstractPrintDialog::PrintSelection);
+ dialog.setOption(QAbstractPrintDialog::PrintSelection);
if (dialog.exec() != QDialog::Accepted) {
return;
}