From 411c47ae7c88b9c4ee193d9f59f2e73155fdc023 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 29 Feb 2020 06:31:26 +0100 Subject: [PATCH] Add credits to used libraries, programs and files. --- CREDITS | 60 ++++++++++++++++++++++++++++++++++ gui/FediPotato.qrc | 1 + gui/src/dialog_about.cpp | 14 ++++++++ gui/src/dialog_about.hpp | 1 + gui/ui/dialog_about.ui | 69 +++++++++++++++++++++++++++++++++++++--- 5 files changed, 141 insertions(+), 4 deletions(-) create mode 100644 CREDITS diff --git a/CREDITS b/CREDITS new file mode 100644 index 0000000..41fa015 --- /dev/null +++ b/CREDITS @@ -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 diff --git a/gui/FediPotato.qrc b/gui/FediPotato.qrc index afb68d0..739aa40 100644 --- a/gui/FediPotato.qrc +++ b/gui/FediPotato.qrc @@ -2,6 +2,7 @@ ../AUTHORS + ../CREDITS images/no_avatar.svg diff --git a/gui/src/dialog_about.cpp b/gui/src/dialog_about.cpp index 3b85c51..dcb1106 100644 --- a/gui/src/dialog_about.cpp +++ b/gui/src/dialog_about.cpp @@ -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 diff --git a/gui/src/dialog_about.hpp b/gui/src/dialog_about.hpp index 33a174d..06a24eb 100644 --- a/gui/src/dialog_about.hpp +++ b/gui/src/dialog_about.hpp @@ -34,6 +34,7 @@ public: private: void display_authors() const; + void display_credits() const; }; } // namespace FediPotato diff --git a/gui/ui/dialog_about.ui b/gui/ui/dialog_about.ui index fd8b037..c172308 100644 --- a/gui/ui/dialog_about.ui +++ b/gui/ui/dialog_about.ui @@ -6,8 +6,8 @@ 0 0 - 400 - 200 + 600 + 400 @@ -104,8 +104,8 @@ 0 0 - 358 - 129 + 558 + 329 @@ -117,12 +117,23 @@ 0 + + + Monospace + + + + Qt::PlainText + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + true + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse @@ -134,6 +145,56 @@ + + + Credits + + + + + + true + + + + + 0 + 0 + 558 + 329 + + + + + + + + Monospace + + + + + + + Qt::PlainText + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + true + + + Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + + + + + +