summaryrefslogtreecommitdiffstats
path: root/tests/manual/qtexttableborders/widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/qtexttableborders/widget.cpp')
-rw-r--r--tests/manual/qtexttableborders/widget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/qtexttableborders/widget.cpp b/tests/manual/qtexttableborders/widget.cpp
index 1d85b16a12..80479a3d99 100644
--- a/tests/manual/qtexttableborders/widget.cpp
+++ b/tests/manual/qtexttableborders/widget.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2019 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "widget.h"
#include "ui_widget.h"
@@ -68,7 +68,7 @@ void Widget::onPrint()
QPrinter printer(QPrinter::HighResolution);
QPrintDialog dlg(&printer, this);
if (ui->htmlEdit->textCursor().hasSelection())
- dlg.addEnabledOption(QAbstractPrintDialog::PrintSelection);
+ dlg.setOption(QAbstractPrintDialog::PrintSelection, true);
dlg.setWindowTitle(tr("Print Document"));
if (dlg.exec() == QDialog::Accepted) {
ui->htmlEdit->print(&printer);