use symbolic links to collect all licenses in one directory and adjust sourcecode

This commit is contained in:
plc-user 2025-06-01 11:01:32 +02:00
parent 0b1491b59a
commit 1868f91ff8
2 changed files with 27 additions and 29 deletions

View File

@ -741,36 +741,34 @@
<file>ico/24x16/zh.png</file> <file>ico/24x16/zh.png</file>
<!-- "Liberation Fonts" Font Software is licensed under the SIL Open Font License, Version 1.1 <!-- "Liberation Fonts" Font Software is licensed under the SIL Open Font License, Version 1.1
See the file "fonts/liberation-fonts.LICENSE" for license information. --> See the file "fonts/liberation-fonts.LICENSE" for license information. -->
<file>fonts/LiberationMono-Regular.ttf</file> <file>fonts/LiberationMono-Regular.ttf</file>
<file>fonts/LiberationMono-Bold.ttf</file> <file>fonts/LiberationMono-Bold.ttf</file>
<file>fonts/LiberationMono-Italic.ttf</file> <file>fonts/LiberationMono-Italic.ttf</file>
<file>fonts/LiberationMono-BoldItalic.ttf</file> <file>fonts/LiberationMono-BoldItalic.ttf</file>
<file>fonts/LiberationSans-Regular.ttf</file> <file>fonts/LiberationSans-Regular.ttf</file>
<file>fonts/LiberationSans-Bold.ttf</file> <file>fonts/LiberationSans-Bold.ttf</file>
<file>fonts/LiberationSans-Italic.ttf</file> <file>fonts/LiberationSans-Italic.ttf</file>
<file>fonts/LiberationSans-BoldItalic.ttf</file> <file>fonts/LiberationSans-BoldItalic.ttf</file>
<file>fonts/LiberationSerif-Regular.ttf</file> <file>fonts/LiberationSerif-Regular.ttf</file>
<file>fonts/LiberationSerif-Bold.ttf</file> <file>fonts/LiberationSerif-Bold.ttf</file>
<file>fonts/LiberationSerif-Italic.ttf</file> <file>fonts/LiberationSerif-Italic.ttf</file>
<file>fonts/LiberationSerif-BoldItalic.ttf</file> <file>fonts/LiberationSerif-BoldItalic.ttf</file>
<file>fonts/liberation-fonts.NOTICE</file> <file>licenses/liberation-fonts.NOTICE</file>
<file>fonts/liberation-fonts.LICENSE</file> <file>licenses/liberation-fonts.LICENSE</file>
<!-- "osifont" Font Software is licensed under the GNU GENERAL PUBLIC LICENSE, Version 3 <!-- "osifont" Font Software is licensed under the GNU GENERAL PUBLIC LICENSE, Version 3
As a special exception, if you create a document which uses this font, and embed this font or unaltered As a special exception, if you create a document which uses this font, and embed this font or unaltered
portions of this font into the document, this font does not by itself cause the resulting document to be portions of this font into the document, this font does not by itself cause the resulting document to be
covered by the GNU General Public License. This exception does not however invalidate any other reasons why covered by the GNU General Public License. This exception does not however invalidate any other reasons why
the document might be covered by the GNU General Public License. If you modify this font, you may extend the document might be covered by the GNU General Public License. If you modify this font, you may extend
this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so, this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so,
delete this exception statement from your version. delete this exception statement from your version.
See the file "fonts/osifont.LICENSE" for license information. -->
See the file "fonts/osifont.LICENSE" for license information. --> <file>fonts/osifont.ttf</file>
<file>fonts/osifont.ttf</file> <file>fonts/osifont-italic.ttf</file>
<file>fonts/osifont-italic.ttf</file> <file>licenses/osifont.NOTICE</file>
<file>fonts/osifont.NOTICE</file> <file>licenses/osifont.LICENSE</file>
<file>fonts/osifont.LICENSE</file>
<file>licenses/QElectroTech.NOTICE</file> <file>licenses/QElectroTech.NOTICE</file>
<file>licenses/QElectroTech.LICENSE</file> <file>licenses/QElectroTech.LICENSE</file>

View File

@ -443,8 +443,8 @@ std::tuple<QString, QString> QET::licenses(const QString &name)
const QMap<QString, QString> licenses = { const QMap<QString, QString> licenses = {
{"QElectroTech", ":/licenses/QElectroTech"}, {"QElectroTech", ":/licenses/QElectroTech"},
{"QET-Elements", ":/licenses/QET-Elements"}, {"QET-Elements", ":/licenses/QET-Elements"},
{"liberation-fonts", ":/fonts/liberation-fonts"}, {"liberation-fonts", ":/licenses/liberation-fonts"},
{"osifont", ":/fonts/osifont"} {"osifont", ":/licenses/osifont"}
}; };
// Get base path for the license files // Get base path for the license files