summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucie Gérard <[email protected]>2024-05-02 11:26:31 +0200
committerLucie Gérard <[email protected]>2024-05-28 09:47:01 +0200
commit1e0bc86dc01a00b115aeb1c0647d61ac8cef3c60 (patch)
treeabb189a99efe74dec6d818e85a57691e3f0c6a68
parente5a5fe7e291e0482b3f487710f50a1d172ecf3bc (diff)
Add copyright and licensing to .cpp and .h files missing them
Task-number: QTBUG-124453 Change-Id: I4487791114ce8ee6d2e788cc9a5f2ea5ec162f6b Reviewed-by: Kai Köhne <[email protected]> Reviewed-by: Thiago Macieira <[email protected]>
-rw-r--r--cmake/tests/main.cpp2
-rw-r--r--config.tests/separate_debug_info/main.cpp2
-rw-r--r--config.tests/verifyspec/verifyspec.cpp2
-rw-r--r--tests/auto/cmake/mockplugins/mock1plugin/qmock1plugin.cpp2
-rw-r--r--tests/auto/cmake/mockplugins/mock2plugin/qmock2plugin.cpp2
-rw-r--r--tests/auto/cmake/mockplugins/mock3plugin/qmock3plugin.cpp2
-rw-r--r--tests/auto/cmake/mockplugins/mock4plugin/qmock4plugin.cpp2
-rw-r--r--tests/auto/cmake/mockplugins/mock5plugin/qmock5plugin.cpp2
-rw-r--r--tests/auto/cmake/mockplugins/mock6plugin/qmock6plugin.cpp2
-rw-r--r--tests/auto/cmake/test_interface/widget_test/main.cpp2
-rw-r--r--tests/auto/corelib/io/qresourceengine/staticplugin/main.cpp2
-rw-r--r--tests/auto/corelib/plugin/qpluginloader/machtest/stub.cpp2
-rw-r--r--tests/auto/tools/moc/enum_inc.h2
-rw-r--r--tests/auto/tools/moc/forwarddeclaredparam.h2
-rw-r--r--tests/auto/tools/moc/subdir/extradefines.h2
-rw-r--r--tests/auto/tools/qmake/testdata/conflicting_targets/main.cpp2
-rw-r--r--tests/auto/tools/qmake/testdata/findDeps/needed.cpp2
-rw-r--r--tests/auto/tools/qmake/testdata/findMocs/digitseparated.h2
-rw-r--r--tests/auto/tools/qmake/testdata/include_pwd/anotherheader.h2
-rw-r--r--tests/auto/tools/qmake/testdata/include_pwd/main.cpp2
-rw-r--r--tests/auto/tools/qmake/testdata/include_pwd/somedirectory/someheader.h2
-rw-r--r--tests/auto/tools/qmake/testdata/quotedfilenames/include folder/header.h2
-rw-r--r--tests/auto/tools/qmake/testdata/windows_resources/main.cpp2
-rw-r--r--tests/auto/tools/qt_cmake_create/testdata/cpp_project/main.cpp2
-rw-r--r--tests/auto/tools/qt_cmake_create/testdata/qml_project/main.cpp2
-rw-r--r--tests/auto/tools/qt_cmake_create/testdata/qrc_project/main.cpp2
-rw-r--r--tests/auto/tools/qt_cmake_create/testdata/ui_project/main.cpp2
-rw-r--r--tests/auto/tools/qt_cmake_create/testdata/ui_project/widget.cpp3
-rw-r--r--tests/auto/tools/qt_cmake_create/testdata/ui_project/widget.h2
-rw-r--r--tests/manual/qtabbar/tabbarform.cpp2
-rw-r--r--tests/manual/qtabbar/tabbarform.h2
31 files changed, 62 insertions, 1 deletions
diff --git a/cmake/tests/main.cpp b/cmake/tests/main.cpp
index a9b87389901..2cd8b7a1032 100644
--- a/cmake/tests/main.cpp
+++ b/cmake/tests/main.cpp
@@ -1 +1,3 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: BSD-3-Clause
int main(int argc, char** argv) { return 0; }
diff --git a/config.tests/separate_debug_info/main.cpp b/config.tests/separate_debug_info/main.cpp
index 237c8ce1817..085864129a7 100644
--- a/config.tests/separate_debug_info/main.cpp
+++ b/config.tests/separate_debug_info/main.cpp
@@ -1 +1,3 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: BSD-3-Clause
int main() {}
diff --git a/config.tests/verifyspec/verifyspec.cpp b/config.tests/verifyspec/verifyspec.cpp
index bd5560bf02b..0b7b13f81b0 100644
--- a/config.tests/verifyspec/verifyspec.cpp
+++ b/config.tests/verifyspec/verifyspec.cpp
@@ -1 +1,3 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: BSD-3-Clause
int main(int, char **) {}
diff --git a/tests/auto/cmake/mockplugins/mock1plugin/qmock1plugin.cpp b/tests/auto/cmake/mockplugins/mock1plugin/qmock1plugin.cpp
index 2ee817d80a7..a2994c10e39 100644
--- a/tests/auto/cmake/mockplugins/mock1plugin/qmock1plugin.cpp
+++ b/tests/auto/cmake/mockplugins/mock1plugin/qmock1plugin.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "qmock1plugin.h"
QT_BEGIN_NAMESPACE
diff --git a/tests/auto/cmake/mockplugins/mock2plugin/qmock2plugin.cpp b/tests/auto/cmake/mockplugins/mock2plugin/qmock2plugin.cpp
index 5b3280e8845..8e107979971 100644
--- a/tests/auto/cmake/mockplugins/mock2plugin/qmock2plugin.cpp
+++ b/tests/auto/cmake/mockplugins/mock2plugin/qmock2plugin.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "qmock2plugin.h"
QT_BEGIN_NAMESPACE
diff --git a/tests/auto/cmake/mockplugins/mock3plugin/qmock3plugin.cpp b/tests/auto/cmake/mockplugins/mock3plugin/qmock3plugin.cpp
index b38f854e4bd..53090472e0c 100644
--- a/tests/auto/cmake/mockplugins/mock3plugin/qmock3plugin.cpp
+++ b/tests/auto/cmake/mockplugins/mock3plugin/qmock3plugin.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "qmock3plugin.h"
QT_BEGIN_NAMESPACE
diff --git a/tests/auto/cmake/mockplugins/mock4plugin/qmock4plugin.cpp b/tests/auto/cmake/mockplugins/mock4plugin/qmock4plugin.cpp
index 5deaf7f43f4..f2a904182d1 100644
--- a/tests/auto/cmake/mockplugins/mock4plugin/qmock4plugin.cpp
+++ b/tests/auto/cmake/mockplugins/mock4plugin/qmock4plugin.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "qmock4plugin.h"
QT_BEGIN_NAMESPACE
diff --git a/tests/auto/cmake/mockplugins/mock5plugin/qmock5plugin.cpp b/tests/auto/cmake/mockplugins/mock5plugin/qmock5plugin.cpp
index c5b4620516d..92ea47690f5 100644
--- a/tests/auto/cmake/mockplugins/mock5plugin/qmock5plugin.cpp
+++ b/tests/auto/cmake/mockplugins/mock5plugin/qmock5plugin.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "qmock5plugin.h"
QT_BEGIN_NAMESPACE
diff --git a/tests/auto/cmake/mockplugins/mock6plugin/qmock6plugin.cpp b/tests/auto/cmake/mockplugins/mock6plugin/qmock6plugin.cpp
index 4a0329c68a4..9dd9e02f2a6 100644
--- a/tests/auto/cmake/mockplugins/mock6plugin/qmock6plugin.cpp
+++ b/tests/auto/cmake/mockplugins/mock6plugin/qmock6plugin.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "qmock6plugin.h"
QT_BEGIN_NAMESPACE
diff --git a/tests/auto/cmake/test_interface/widget_test/main.cpp b/tests/auto/cmake/test_interface/widget_test/main.cpp
index e6a8ab5fe9d..0a47f43d843 100644
--- a/tests/auto/cmake/test_interface/widget_test/main.cpp
+++ b/tests/auto/cmake/test_interface/widget_test/main.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QString>
#include <QWidget>
diff --git a/tests/auto/corelib/io/qresourceengine/staticplugin/main.cpp b/tests/auto/corelib/io/qresourceengine/staticplugin/main.cpp
index 39a3a1e012f..c7b0fe7ea1d 100644
--- a/tests/auto/corelib/io/qresourceengine/staticplugin/main.cpp
+++ b/tests/auto/corelib/io/qresourceengine/staticplugin/main.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QObject>
class PluginClass : public QObject
diff --git a/tests/auto/corelib/plugin/qpluginloader/machtest/stub.cpp b/tests/auto/corelib/plugin/qpluginloader/machtest/stub.cpp
index 24bac391fb0..eed7228a29c 100644
--- a/tests/auto/corelib/plugin/qpluginloader/machtest/stub.cpp
+++ b/tests/auto/corelib/plugin/qpluginloader/machtest/stub.cpp
@@ -1 +1,3 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
void dummy() {}
diff --git a/tests/auto/tools/moc/enum_inc.h b/tests/auto/tools/moc/enum_inc.h
index 7d7b6ae9f37..2b355b7a192 100644
--- a/tests/auto/tools/moc/enum_inc.h
+++ b/tests/auto/tools/moc/enum_inc.h
@@ -1,2 +1,4 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
parcel = 42,
part = 12,
diff --git a/tests/auto/tools/moc/forwarddeclaredparam.h b/tests/auto/tools/moc/forwarddeclaredparam.h
index 176f0c3356e..94caae8a5bf 100644
--- a/tests/auto/tools/moc/forwarddeclaredparam.h
+++ b/tests/auto/tools/moc/forwarddeclaredparam.h
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef FORWARDDECLAREDPARAM_H
#define FORWARDDECLAREDPARAM_H
struct ForwardDeclaredParam {};
diff --git a/tests/auto/tools/moc/subdir/extradefines.h b/tests/auto/tools/moc/subdir/extradefines.h
index e7888ce80de..efad23be6ff 100644
--- a/tests/auto/tools/moc/subdir/extradefines.h
+++ b/tests/auto/tools/moc/subdir/extradefines.h
@@ -1 +1,3 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#define FOO 1
diff --git a/tests/auto/tools/qmake/testdata/conflicting_targets/main.cpp b/tests/auto/tools/qmake/testdata/conflicting_targets/main.cpp
index 39de28135aa..866a0637532 100644
--- a/tests/auto/tools/qmake/testdata/conflicting_targets/main.cpp
+++ b/tests/auto/tools/qmake/testdata/conflicting_targets/main.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
int main(int, char **)
{
return 0;
diff --git a/tests/auto/tools/qmake/testdata/findDeps/needed.cpp b/tests/auto/tools/qmake/testdata/findDeps/needed.cpp
index 698d0aaa12c..726382cf10d 100644
--- a/tests/auto/tools/qmake/testdata/findDeps/needed.cpp
+++ b/tests/auto/tools/qmake/testdata/findDeps/needed.cpp
@@ -1 +1,3 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
extern int needed(void) { return 1; }
diff --git a/tests/auto/tools/qmake/testdata/findMocs/digitseparated.h b/tests/auto/tools/qmake/testdata/findMocs/digitseparated.h
index ddedac26e38..10cf31a8a55 100644
--- a/tests/auto/tools/qmake/testdata/findMocs/digitseparated.h
+++ b/tests/auto/tools/qmake/testdata/findMocs/digitseparated.h
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QObject>
class AfterDigitSeparator : public QObject
diff --git a/tests/auto/tools/qmake/testdata/include_pwd/anotherheader.h b/tests/auto/tools/qmake/testdata/include_pwd/anotherheader.h
index a3a63e26bf9..228a8861b79 100644
--- a/tests/auto/tools/qmake/testdata/include_pwd/anotherheader.h
+++ b/tests/auto/tools/qmake/testdata/include_pwd/anotherheader.h
@@ -1,2 +1,4 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
/* This file should be included indirectly through main.cpp */
diff --git a/tests/auto/tools/qmake/testdata/include_pwd/main.cpp b/tests/auto/tools/qmake/testdata/include_pwd/main.cpp
index c98935f87d1..b55f0525ead 100644
--- a/tests/auto/tools/qmake/testdata/include_pwd/main.cpp
+++ b/tests/auto/tools/qmake/testdata/include_pwd/main.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "someheader.h"
int main()
diff --git a/tests/auto/tools/qmake/testdata/include_pwd/somedirectory/someheader.h b/tests/auto/tools/qmake/testdata/include_pwd/somedirectory/someheader.h
index f9773469452..9a26fb7c1ed 100644
--- a/tests/auto/tools/qmake/testdata/include_pwd/somedirectory/someheader.h
+++ b/tests/auto/tools/qmake/testdata/include_pwd/somedirectory/someheader.h
@@ -1 +1,3 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "anotherheader.h"
diff --git a/tests/auto/tools/qmake/testdata/quotedfilenames/include folder/header.h b/tests/auto/tools/qmake/testdata/quotedfilenames/include folder/header.h
index 595c0cac3c9..b65da1d85cb 100644
--- a/tests/auto/tools/qmake/testdata/quotedfilenames/include folder/header.h
+++ b/tests/auto/tools/qmake/testdata/quotedfilenames/include folder/header.h
@@ -1 +1,3 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
/* a random header file */
diff --git a/tests/auto/tools/qmake/testdata/windows_resources/main.cpp b/tests/auto/tools/qmake/testdata/windows_resources/main.cpp
index 237c8ce1817..6c1d24751e0 100644
--- a/tests/auto/tools/qmake/testdata/windows_resources/main.cpp
+++ b/tests/auto/tools/qmake/testdata/windows_resources/main.cpp
@@ -1 +1,3 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
int main() {}
diff --git a/tests/auto/tools/qt_cmake_create/testdata/cpp_project/main.cpp b/tests/auto/tools/qt_cmake_create/testdata/cpp_project/main.cpp
index ae659d5ed48..3526286e5e8 100644
--- a/tests/auto/tools/qt_cmake_create/testdata/cpp_project/main.cpp
+++ b/tests/auto/tools/qt_cmake_create/testdata/cpp_project/main.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <iostream>
int main(int, char *[])
diff --git a/tests/auto/tools/qt_cmake_create/testdata/qml_project/main.cpp b/tests/auto/tools/qt_cmake_create/testdata/qml_project/main.cpp
index 13c7014d8ce..844e67e2c44 100644
--- a/tests/auto/tools/qt_cmake_create/testdata/qml_project/main.cpp
+++ b/tests/auto/tools/qt_cmake_create/testdata/qml_project/main.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QGuiApplication>
#include <QQmlApplicationEngine>
diff --git a/tests/auto/tools/qt_cmake_create/testdata/qrc_project/main.cpp b/tests/auto/tools/qt_cmake_create/testdata/qrc_project/main.cpp
index cd8ed8f57b4..72f63e30772 100644
--- a/tests/auto/tools/qt_cmake_create/testdata/qrc_project/main.cpp
+++ b/tests/auto/tools/qt_cmake_create/testdata/qrc_project/main.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QFile>
#include <QDebug>
diff --git a/tests/auto/tools/qt_cmake_create/testdata/ui_project/main.cpp b/tests/auto/tools/qt_cmake_create/testdata/ui_project/main.cpp
index b0a4ec26478..2e74e1c140d 100644
--- a/tests/auto/tools/qt_cmake_create/testdata/ui_project/main.cpp
+++ b/tests/auto/tools/qt_cmake_create/testdata/ui_project/main.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "widget.h"
#include <QApplication>
diff --git a/tests/auto/tools/qt_cmake_create/testdata/ui_project/widget.cpp b/tests/auto/tools/qt_cmake_create/testdata/ui_project/widget.cpp
index 815d5f8c4bb..65c5eae0c9d 100644
--- a/tests/auto/tools/qt_cmake_create/testdata/ui_project/widget.cpp
+++ b/tests/auto/tools/qt_cmake_create/testdata/ui_project/widget.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "widget.h"
#include "ui_widget.h"
@@ -12,4 +14,3 @@ Widget::~Widget()
{
delete ui;
}
-
diff --git a/tests/auto/tools/qt_cmake_create/testdata/ui_project/widget.h b/tests/auto/tools/qt_cmake_create/testdata/ui_project/widget.h
index 1fe2322b138..9110f2a20b6 100644
--- a/tests/auto/tools/qt_cmake_create/testdata/ui_project/widget.h
+++ b/tests/auto/tools/qt_cmake_create/testdata/ui_project/widget.h
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef WIDGET_H
#define WIDGET_H
diff --git a/tests/manual/qtabbar/tabbarform.cpp b/tests/manual/qtabbar/tabbarform.cpp
index 51271f73736..8e09e182d8b 100644
--- a/tests/manual/qtabbar/tabbarform.cpp
+++ b/tests/manual/qtabbar/tabbarform.cpp
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "tabbarform.h"
TabBarForm::TabBarForm(QWidget *parent) :
diff --git a/tests/manual/qtabbar/tabbarform.h b/tests/manual/qtabbar/tabbarform.h
index ac101d64025..ae0ea290dea 100644
--- a/tests/manual/qtabbar/tabbarform.h
+++ b/tests/manual/qtabbar/tabbarform.h
@@ -1,3 +1,5 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef TABBARFORM_H
#define TABBARFORM_H