summaryrefslogtreecommitdiffstats
path: root/tests/manual/windowmodality
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/windowmodality')
-rw-r--r--tests/manual/windowmodality/CMakeLists.txt7
-rw-r--r--tests/manual/windowmodality/main.cpp43
-rw-r--r--tests/manual/windowmodality/widget.ui7
3 files changed, 10 insertions, 47 deletions
diff --git a/tests/manual/windowmodality/CMakeLists.txt b/tests/manual/windowmodality/CMakeLists.txt
index 02280cef9b..c32a973c5d 100644
--- a/tests/manual/windowmodality/CMakeLists.txt
+++ b/tests/manual/windowmodality/CMakeLists.txt
@@ -1,16 +1,17 @@
-# Generated from windowmodality.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
#####################################################################
## windowmodality Binary:
#####################################################################
-qt_add_manual_test(windowmodality
+qt_internal_add_manual_test(windowmodality
GUI
SOURCES
dialog.ui
main.cpp
widget.ui
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Gui
Qt::PrintSupport
Qt::Widgets
diff --git a/tests/manual/windowmodality/main.cpp b/tests/manual/windowmodality/main.cpp
index 46693cdddd..6a11f6c42d 100644
--- a/tests/manual/windowmodality/main.cpp
+++ b/tests/manual/windowmodality/main.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "ui_dialog.h"
#include "ui_widget.h"
@@ -51,7 +26,7 @@ class CustomDialog : public QDialog, public Ui::Dialog
{
Q_OBJECT
public:
- CustomDialog(QWidget *parent = 0)
+ CustomDialog(QWidget *parent = nullptr)
: QDialog(parent)
{
setupUi(this);
@@ -101,7 +76,7 @@ private slots:
private:
void newDialog(DialogType dialogType, Qt::WindowModality windowModality)
{
- QWidget *parent = 0;
+ QWidget *parent = nullptr;
if (useThisAsParentCheckBox->isChecked())
parent = this;
else if (createSiblingDialogCheckBox->isChecked())
@@ -166,7 +141,7 @@ class Widget : public QWidget, public Ui::Widget
{
Q_OBJECT
public:
- Widget(QWidget *parent = 0)
+ Widget(QWidget *parent = nullptr)
: QWidget(parent)
{
setupUi(this);
@@ -175,12 +150,6 @@ public:
private slots:
void on_windowButton_clicked()
{ (new Widget)->show(); }
- void on_groupLeaderButton_clicked()
- {
- Widget *w = new Widget;
- w->setAttribute(Qt::WA_GroupLeader);
- w->show();
- }
void on_modelessCustomDialogButton_clicked()
{ newDialog(CustomDialogType, Qt::NonModal); }
@@ -218,7 +187,7 @@ private slots:
private:
void newDialog(DialogType dialogType, Qt::WindowModality windowModality)
{
- QWidget *parent = 0;
+ QWidget *parent = nullptr;
if (useThisAsParentCheckBox->isChecked())
parent = this;
diff --git a/tests/manual/windowmodality/widget.ui b/tests/manual/windowmodality/widget.ui
index 26d218b79e..1ba116863f 100644
--- a/tests/manual/windowmodality/widget.ui
+++ b/tests/manual/windowmodality/widget.ui
@@ -191,13 +191,6 @@
</property>
</widget>
</item>
- <item row="3" column="1">
- <widget class="QPushButton" name="groupLeaderButton">
- <property name="text">
- <string>Window (Group Leader)</string>
- </property>
- </widget>
- </item>
<item row="9" column="2">
<widget class="QPushButton" name="windowModalPrintDialogButton">
<property name="text">