Skip to content

Commit

Permalink
Standardize project to KDAB copyright policy
Browse files Browse the repository at this point in the history
For individual files: use year of file creation
For entire project:
  remove year from the statement
  use the © where feasible

reference:
https://matija.suklje.name/how-and-why-to-properly-write-copyright-statements-in-your-code
  • Loading branch information
Allen Winter committed Jan 19, 2024
1 parent 2388228 commit 52611ec
Show file tree
Hide file tree
Showing 91 changed files with 105 additions and 148 deletions.
8 changes: 4 additions & 4 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ Source: http://github.com/KDABLabs/KDToolBox

#misc source code
Files: qt/stringtokenizer/include/QStringTokenizer qt/stringtokenizer/include/QtCore/QStringTokenizer *.qrc *.json *.ui
Copyright: 2019-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Copyright: Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
License: MIT

#misc documentation
Files: *.md
Copyright: 2019-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Copyright: Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
License: MIT

#misc config files
Files: .clang-format .clazy .cmake-format.py .codespellrc .gitignore .gitmodules .gitreview .krazy .pep8 .pre-commit-config.yaml .pylintrc .qmake.conf .travis.yml appveyor.yml .mdlrc .mdlrc.rb
Copyright: 2019-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Copyright: Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
License: MIT

#artwork
Files: *.png
Copyright: 2019-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Copyright: Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
License: MIT

#3rdparty fmt
Expand Down
4 changes: 2 additions & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KDToolBox is (C) 2019-2023, Klarälvdalens Datakonsult AB (KDAB) and is
made available under the terms of the MIT license (see LICENSES/MIT.txt).
KDToolBox is © Klarälvdalens Datakonsult AB (KDAB) and is made available
under the terms of the MIT license (see LICENSES/MIT.txt).

Contact KDAB at <[email protected]> to inquire about commercial licensing.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ KDAB's collection of miscellaneous useful C++ classes and stuff.

## Licensing

KDToolBox is (C) 2019-2023, Klarälvdalens Datakonsult AB (KDAB) and is
made available under the terms of the [MIT](LICENSES/MIT.txt) license.
KDToolBox is © Klarälvdalens Datakonsult AB (KDAB) and is made available
under the terms of the [MIT](LICENSES/MIT.txt) license.

Contact KDAB at <[email protected]> if you need different licensing options.

Expand Down
5 changes: 3 additions & 2 deletions cmake/modules/CheckSubmoduleExists.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# This file is part of KDToolBox.
#
# SPDX-FileCopyrightText: 2021-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
# SPDX-FileCopyrightText: 2021 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
#
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-License-Identifier: MIT
#

# Submodule handling
Expand Down
2 changes: 1 addition & 1 deletion config.tests/cpp20/cpp20.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2021-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2021 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-License-Identifier: MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion cpp/duplicatetracker/include/duplicatetracker.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2021-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2021 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Marc Mutz <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2021-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2021 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Marc Mutz <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/future-backports/include/k20/deque.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Marc Mutz <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/future-backports/include/k20/detail/erase_if.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-License-Identifier: MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion cpp/future-backports/include/k20/forward_list.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Marc Mutz <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/future-backports/include/k20/list.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Marc Mutz <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/future-backports/include/k20/map.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Marc Mutz <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/future-backports/include/k20/set.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Marc Mutz <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/future-backports/include/k20/string.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Marc Mutz <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/future-backports/include/k20/unordered_map.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Marc Mutz <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/future-backports/include/k20/unordered_set.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Marc Mutz <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/future-backports/include/k20/vector.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Marc Mutz <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/future-backports/tests/k20/erase_if/tst_erase_if.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-License-Identifier: MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion cpp/propagate_const/propagate_const.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2022-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2022 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Giuseppe D'Angelo <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/propagate_const/test/tst_propagate_const.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Giuseppe D'Angelo <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/toContainer/toContainer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2021-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2021 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Giuseppe D'Angelo <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion cpp/toContainer/tst_toContainer.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2021-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2021 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Giuseppe D'Angelo <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion general/asan_assert_fail/asan_assert_fail.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Milian Wolff <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion qt/KDSignalThrottler/examples/debouncedSearch/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Giuseppe D'Angelo <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Giuseppe D'Angelo <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion qt/KDSignalThrottler/src/KDSignalThrottler.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Giuseppe D'Angelo <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion qt/KDSignalThrottler/src/KDSignalThrottler.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Giuseppe D'Angelo <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion qt/KDSignalThrottler/test/tst_KDSignalThrottler.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Giuseppe D'Angelo <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion qt/KDSqlDatabaseTransaction/KDSqlDatabaseTransaction.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2019-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2019 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-License-Identifier: MIT
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2019-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2019 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-License-Identifier: MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion qt/asan_assert_fail_qt/asan_assert_fail_qt.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Milian Wolff <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion qt/cmake-project/cmake-project
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# SPDX-FileCopyrightText: 2020-2023 Klaravdalens Datakonsult AB (KDAB), author David Faure <[email protected]>
# SPDX-FileCopyrightText: 2020 Klaravdalens Datakonsult AB (KDAB), author David Faure <[email protected]>
# SPDX-License-Identifier: MIT

# Generate a CMakeLists.txt based on the .cpp files in the current directory
Expand Down
2 changes: 1 addition & 1 deletion qt/dpiinfo.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Sérgio Martins <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion qt/eventfilter/eventfilter.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Sérgio Martins <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion qt/eventfilter/example/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-License-Identifier: MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion qt/includemocs/check-includemocs-hook.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is part of KDToolBox.
#
# SPDX-FileCopyrightText: 2022-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
# SPDX-FileCopyrightText: 2022 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
#
# SPDX-License-Identifier: MIT
#
Expand Down
34 changes: 5 additions & 29 deletions qt/includemocs/includemocs.py
Original file line number Diff line number Diff line change
@@ -1,44 +1,20 @@
#!/usr/bin/env python3

#
# This file is part of KDToolBox.
#
# SPDX-FileCopyrightText: 2022-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
# SPDX-FileCopyrightText: 2022 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
# Author: Jesper K. Pedersen <[email protected]>
#
# SPDX-License-Identifier: MIT
#
#! /usr/bin/env python3

'''
Script to add inclusion of mocs to files recursively.
'''

# pylint: disable=redefined-outer-name

##########################################################################
# MIT License
#
# Copyright (C) 2022-2023 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected]
# Author: Jesper K. Pedersen <[email protected]>
#
# This file is part of KDToolBox (https://github.com/KDAB/KDToolBox).
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, ** and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice (including the next paragraph)
# shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF ** CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
##########################################################################

import os
import re
import argparse
Expand Down
2 changes: 1 addition & 1 deletion qt/messagehandler/example/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file is part of KDToolBox.
SPDX-FileCopyrightText: 2020-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
Author: Giuseppe D'Angelo <[email protected]>
SPDX-License-Identifier: MIT
Expand Down
Loading

0 comments on commit 52611ec

Please sign in to comment.