diff options
Diffstat (limited to 'tests/manual/qtexttableborders')
-rw-r--r-- | tests/manual/qtexttableborders/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/manual/qtexttableborders/main.cpp | 2 | ||||
-rw-r--r-- | tests/manual/qtexttableborders/widget.cpp | 4 | ||||
-rw-r--r-- | tests/manual/qtexttableborders/widget.h | 2 |
4 files changed, 4 insertions, 10 deletions
diff --git a/tests/manual/qtexttableborders/CMakeLists.txt b/tests/manual/qtexttableborders/CMakeLists.txt index 96518b1a6b..edae83e643 100644 --- a/tests/manual/qtexttableborders/CMakeLists.txt +++ b/tests/manual/qtexttableborders/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -# Generated from qtexttableborders.pro. - ##################################################################### ## qtexttableborders Binary: ##################################################################### @@ -32,7 +30,3 @@ qt_internal_add_resource(qtexttableborders "resources" FILES ${resources_resource_files} ) - - -#### Keys ignored in scope 1:.:.:qtexttableborders.pro:<TRUE>: -# TEMPLATE = "app" diff --git a/tests/manual/qtexttableborders/main.cpp b/tests/manual/qtexttableborders/main.cpp index eccbce20d6..b45e853938 100644 --- a/tests/manual/qtexttableborders/main.cpp +++ b/tests/manual/qtexttableborders/main.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 <QApplication> 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); diff --git a/tests/manual/qtexttableborders/widget.h b/tests/manual/qtexttableborders/widget.h index 4d35264e02..d604861144 100644 --- a/tests/manual/qtexttableborders/widget.h +++ b/tests/manual/qtexttableborders/widget.h @@ -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 #ifndef WIDGET_H #define WIDGET_H |