Update ThanksTo in the AboutDlg
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 20 Sep 2016 21:06:10 +0000 (23:06 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 20 Sep 2016 21:06:10 +0000 (23:06 +0200)
This was pretty outdated and mentioned companies that no longer exist.
Bring the content of that tab into the present. Add new icons, remove
old.

Also modernize the code a tiny bit, and ease the life of translators
by factoring out most of the RichText stuff.

icons/hicolor.qrc
pics/kde-vdg.png [new file with mode: 0644]
pics/nokia.png [deleted file]
pics/oxygen.png [deleted file]
pics/pics.qrc
pics/qt-logo-32.png
src/qtui/aboutdlg.cpp
src/qtui/ui/aboutdlg.ui
src/uisupport/aboutdata.h

index 67b3ad1..d2e7cca 100644 (file)
@@ -4,6 +4,7 @@
     <file>hicolor/22x22/apps/quassel.png</file>
     <file>hicolor/32x32/apps/quassel.png</file>
     <file alias="quassel.png">hicolor/48x48/apps/quassel.png</file>
+    <file alias="quassel-32.png">hicolor/32x32/apps/quassel.png</file>
     <file alias="quassel-64.png">hicolor/64x64/apps/quassel.png</file>
     <file alias="quassel-128.png">hicolor/128x128/apps/quassel.png</file>
     <file>hicolor/16x16/status/quassel-message.png</file>
diff --git a/pics/kde-vdg.png b/pics/kde-vdg.png
new file mode 100644 (file)
index 0000000..5e7ee18
Binary files /dev/null and b/pics/kde-vdg.png differ
diff --git a/pics/nokia.png b/pics/nokia.png
deleted file mode 100644 (file)
index bd9862f..0000000
Binary files a/pics/nokia.png and /dev/null differ
diff --git a/pics/oxygen.png b/pics/oxygen.png
deleted file mode 100644 (file)
index 430cfa7..0000000
Binary files a/pics/oxygen.png and /dev/null differ
index 0292b3a..da6473d 100644 (file)
@@ -1,7 +1,6 @@
 <RCC>
-  <qresource prefix="/pics" >
-    <file>nokia.png</file>
-    <file>oxygen.png</file>
+  <qresource prefix="/pics">
+    <file>kde-vdg.png</file>
     <file>quassel-eye.png</file>
     <file>quassel-logo.png</file>
     <file>qt-logo.png</file>
index 581ba2b..cd8b713 100644 (file)
Binary files a/pics/qt-logo-32.png and b/pics/qt-logo-32.png differ
index e41cac0..c597f4e 100644 (file)
@@ -50,17 +50,19 @@ AboutDlg::AboutDlg(QWidget *parent)
 
 QString AboutDlg::about() const
 {
-    QString res;
-    res = tr("<b>A modern, distributed IRC Client</b><br><br>"
+    QString res {tr("<b>A modern, distributed IRC Client</b><br><br>"
              "&copy;%1 by the Quassel Project<br>"
              "<a href=\"http://quassel-irc.org\">http://quassel-irc.org</a><br>"
              "<a href=\"irc://irc.freenode.net/quassel\">#quassel</a> on <a href=\"http://www.freenode.net\">Freenode</a><br><br>"
              "Quassel IRC is dual-licensed under <a href=\"http://www.gnu.org/licenses/gpl-2.0.txt\">GPLv2</a> and "
-             "<a href=\"http://www.gnu.org/licenses/gpl-3.0.txt\">GPLv3</a>.<br>"
-             "Most icons are &copy; by the <a href=\"https://api.kde.org/frameworks/oxygen-icons5/html/index.html\">Oxygen Team</a> and used under the "
-             "<a href=\"http://www.gnu.org/licenses/lgpl.html\">LGPL</a>.<br><br>"
+                 "<a href=\"http://www.gnu.org/licenses/gpl-3.0.txt\">GPLv3</a>.<br>"
+             "<a href=\"https://api.kde.org/frameworks/breeze-icons/html\">Breeze icon theme</a> &copy; Uri Herrera and others, licensed under the "
+                 "<a href=\"https://github.com/KDE/breeze-icons/blob/21ffd9b/COPYING-ICONS\">LGPLv3</a>.<br>"
+             "<a href=\"https://api.kde.org/frameworks/oxygen-icons5/html\">Oxygen icon theme</a> &copy; Nuno Pinheiro and others, licensed under the "
+                 "<a href=\"https://github.com/KDE/oxygen-icons/blob/master/COPYING\">LGPLv3</a>.<br><br>"
              "Please use <a href=\"http://bugs.quassel-irc.org\">http://bugs.quassel-irc.org</a> to report bugs."
-        ).arg("2005-2016");
+        ).arg("2005-2016")
+    };
 
     return res;
 }
@@ -68,9 +70,8 @@ QString AboutDlg::about() const
 
 QString AboutDlg::authors() const
 {
-    QString res;
-    res = tr("Quassel IRC is mainly developed by:") + "<dl>";
-    for (const auto &person : _aboutData->authors()) {
+    QString res {tr("Quassel IRC is mainly developed by:") + "<dl>"};
+    for (auto &&person : _aboutData->authors()) {
         res.append("<dt><b>" + person.prettyName() + "</b></dt><dd>");
         if (!person.emailAddress().isEmpty())
             res.append("<a href=\"mailto:" + person.emailAddress() + "\">" + person.emailAddress() + "</a><br>");
@@ -83,31 +84,36 @@ QString AboutDlg::authors() const
 
 QString AboutDlg::contributors() const
 {
-    QString res;
-    res = tr("We would like to thank the following contributors (in alphabetical order) and everybody we forgot to mention here:") + "<br><dl>";
-    for (const auto &person : _aboutData->credits()) {
+    QString res {tr("We would like to thank the following contributors (in alphabetical order) and everybody we forgot to mention here:") + "<br><dl>"};
+    for (auto &&person : _aboutData->credits()) {
         res.append("<dt><b>" + person.prettyName() + "</b></dt><dd><i>" + person.task() + "</i><br></dd>");
     }
     res.append("</dl>" + tr("...and anybody else finding and reporting bugs, giving feedback, helping others and being part of the community!"));
-
     return res;
 }
 
 
 QString AboutDlg::thanksTo() const
 {
-    QString res;
-    res = tr("Special thanks goes to:<br>"
-             "<dl>"
-             "<dt><img src=\":/pics/quassel-eye.png\">&nbsp;<b>John \"nox\" Hand</b></dt>"
-             "<dd><i>for the original Quassel icon - The All-Seeing Eye</i><br></dt>"
-             "<dt><img src=\":/pics/oxygen.png\">&nbsp;<b><a href=\"https://api.kde.org/frameworks/oxygen-icons5/html/index.html\">The Oxygen Team</a></b></dt>"
-             "<dd><i>for creating all the artwork you see throughout Quassel</i><br></dd>"
-             "<dt><img src=\":/pics/qt-logo-32.png\">&nbsp;<b><a href=\"https://www.qt.io/\">Qt Software formerly known as Trolltech</a></b></dt>"
-             "<dd><i>for creating Qt and Qtopia, and for sponsoring development of QuasselTopia with Greenphones and more</i><br></dd>"
-             "<dt><a href=\"http://www.nokia.com\"><img src=\":/pics/nokia.png\"></a></b></dt>"
-             "<dd><i>for sponsoring development of Quassel Mobile with N810s</i></dd>"
-        );
+    QString res {tr("Special thanks goes to:") + "<br>"
+          "<table>"
+              "<tr><td rowspan='2' valign='middle'><img src=':/pics/quassel-eye.png'>&nbsp;</td>"
+                                 "<td><b>John \"nox\" Hand</b></td></tr>"
+              "<tr><td><i>" + tr("for the original Quassel logo - The All-Seeing Eye") + "</i></td></tr>"
+              "<tr/>"
+              "<tr><td rowspan='2' valign='middle'><img src=':/icons/quassel-32.png'></td>"
+                                 "<td><b>Nuno Pinheiro</b></td></tr>"
+              "<tr><td><i>" + tr("for the current Quassel logo") + "</i></td></tr>"
+              "<tr/>"
+              "<tr><td rowspan='2' valign='middle'><img src=':/pics/kde-vdg.png'></td>"
+                                 "<td><b><a href='https://vdesign.kde.org'>The KDE Visual Design Group</a></b></td></tr>"
+              "<tr><td><i>" + tr("for the amazing Breeze and Oxygen icon themes") + "</i></td></tr>"
+              "<tr/>"
+              "<tr><td rowspan='2' valign='middle'><img src=':/pics/qt-logo-32.png'></td>"
+                                 "<td><b><a href='https://www.qt.io/'>The Qt Company</a></b> (formerly known as Qt Software, Nokia, Trolltech)</td></tr>"
+              "<tr><td><i>" + tr("for creating an awesome framework, and for sponsoring development with Greenphones, N810s, N950s and more") + "</i></td></tr>"
+          "</table>"
+    };
 
     return res;
 }
index 72e14db..e7edcd9 100644 (file)
@@ -9,8 +9,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>488</width>
-    <height>494</height>
+    <width>864</width>
+    <height>628</height>
    </rect>
   </property>
   <property name="windowTitle">
index c77a432..921f31f 100644 (file)
@@ -20,7 +20,9 @@
 
 #pragma once
 
+#include <QList>
 #include <QLocale>
+#include <QString>
 
 #ifdef HAVE_KF5
 #  include <KCoreAddons/KAboutData>