Add credits to used libraries, programs and files.

This commit is contained in:
tastytea 2020-02-29 06:31:26 +01:00
parent ab10e90c7f
commit 411c47ae7c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
5 changed files with 141 additions and 4 deletions

60
CREDITS Normal file
View File

@ -0,0 +1,60 @@
FediPotato makes direct use of the following libraries and programs:
C** and the C++ standard library
From: The C++ committee and community, implemented by various projects.
https://isocpp.org/
mastodonpp
From: tastytea and community
https://schlomp.space/tastytea/mastodonpp
License: AGPL-3.0-only
nlohmann-json
From: Niels Lohmann and community
https://github.com/nlohmann/json
License: MIT
Qt
From: The Qt Project and community
https://www.qt.io/
License: GPL-2.0-only, GPL-3.0-only and LGPL-3.0-only
CMake
From: Kitware and community
https://cmake.org/
License: Custom license
https://github.com/Kitware/CMake/blob/master/Copyright.txt
Doxygen
From: Dimitri van Heesch and community
http://www.doxygen.org
License: GPL-2.0-only
Catch
From: Martin Hořeňovský and community
https://github.com/catchorg/Catch2
License: BSL-1
dpkg
From: The Debian project and community
https://packages.qa.debian.org/d/dpkg.html
License: GPL-2.0-or-later
rpm
From: Red Hat and community
https://rpm.org
License: GPL-2.0-only and LGPL-2.0-only
The following files are copied from other projects:
FindFilesystem.cmake
From: CMake Community Modules
https://github.com/vector-of-bool/CMakeCM
License: BSD-3-Clause License
no_avatar.svg, originally mm.svg
From: ivatar
https://git.linux-kernel.at/oliver/ivatar/
License: AGPL-3.0-or-later

View File

@ -2,6 +2,7 @@
<RCC version="1.0">
<qresource prefix="/">
<file alias="AUTHORS">../AUTHORS</file>
<file alias="CREDITS">../CREDITS</file>
<file>images/no_avatar.svg</file>
</qresource>
</RCC>

View File

@ -15,6 +15,7 @@ AboutDialog::AboutDialog(QDialog *parent)
+= FediPotato::get_version().data());
display_authors();
display_credits();
}
void AboutDialog::display_authors() const
@ -30,4 +31,17 @@ void AboutDialog::display_authors() const
}
}
void AboutDialog::display_credits() const
{
QFile file(":/CREDITS");
if (file.open(QIODevice::ReadOnly))
{
label_credits->setText(file.readAll());
}
else
{
label_credits->setText(tr("Could not open :/CREDITS."));
}
}
} // namespace FediPotato

View File

@ -34,6 +34,7 @@ public:
private:
void display_authors() const;
void display_credits() const;
};
} // namespace FediPotato

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>200</height>
<width>600</width>
<height>400</height>
</rect>
</property>
<property name="sizePolicy">
@ -104,8 +104,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>358</width>
<height>129</height>
<width>558</width>
<height>329</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
@ -117,12 +117,23 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>Monospace</family>
</font>
</property>
<property name="text">
<string/>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
@ -134,6 +145,56 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_credits">
<attribute name="title">
<string>Credits</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QScrollArea" name="scrollArea_2">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents_2">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>558</width>
<height>329</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label_credits">
<property name="font">
<font>
<family>Monospace</family>
</font>
</property>
<property name="text">
<string/>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>