X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Faboutdlg.cpp;h=326c8f3ebbbad80df989785cdaf78c1ac806dca5;hp=14684888aec153b1691db122b2540ef81fa8a087;hb=9188f1a4880dc7f4c26612a265c1d874f6df5a8c;hpb=fa56ee7fc1b94ea27da6b27c919d6df1c0e0490d diff --git a/src/qtui/aboutdlg.cpp b/src/qtui/aboutdlg.cpp index 14684888..326c8f3e 100644 --- a/src/qtui/aboutdlg.cpp +++ b/src/qtui/aboutdlg.cpp @@ -28,7 +28,7 @@ #include "quassel.h" #include "util.h" -AboutDlg::AboutDlg(QWidget *parent) +AboutDlg::AboutDlg(QWidget* parent) : QDialog(parent) , _aboutData(new AboutData(this)) { @@ -44,14 +44,14 @@ AboutDlg::AboutDlg(QWidget *parent) versionDate = QString("%1").arg(tr("Unknown date")); } else { - versionDate = tryFormatUnixEpoch(Quassel::buildInfo().commitDate); + versionDate = tryFormatUnixEpoch(Quassel::buildInfo().commitDate, Qt::DateFormat::DefaultLocaleShortDate); } ui.versionLabel->setText(QString(tr("Version: %1
" "Version date: %2
" "Protocol version: %3")) - .arg(Quassel::buildInfo().fancyVersionString) - .arg(versionDate) - .arg(Quassel::buildInfo().protocolVersion)); + .arg(Quassel::buildInfo().fancyVersionString) + .arg(versionDate) + .arg(Quassel::buildInfo().protocolVersion)); ui.aboutTextBrowser->setHtml(about()); ui.authorTextBrowser->setHtml(authors()); ui.contributorTextBrowser->setHtml(contributors()); @@ -60,31 +60,30 @@ AboutDlg::AboutDlg(QWidget *parent) setWindowIcon(icon::get("quassel")); } - QString AboutDlg::about() const { - QString res {tr("A modern, distributed IRC Client

" - "©%1 by the Quassel Project
" - "https://quassel-irc.org
" - "#quassel on Freenode

" - "Quassel IRC is dual-licensed under GPLv2 and " - "GPLv3.
" - "Breeze icon theme © Uri Herrera and others, licensed under the " - "LGPLv3.
" - "Oxygen icon theme © Nuno Pinheiro and others, licensed under the " - "LGPLv3.

" - "Please use https://bugs.quassel-irc.org to report bugs." - ).arg("2005-2018") - }; + QString res{tr("A modern, distributed IRC Client

" + "©%1 by the Quassel Project
" + "https://quassel-irc.org
" + "#quassel on Freenode

" + "Quassel IRC is dual-licensed under GPLv2 and " + "GPLv3.
" + "Breeze icon theme © Uri Herrera and others, " + "licensed under the " + "LGPLv3.
" + "Oxygen icon theme © Nuno Pinheiro and others, " + "licensed under the " + "LGPLv3.

" + "Please use https://bugs.quassel-irc.org to report bugs.") + .arg("2005-2018")}; return res; } - QString AboutDlg::authors() const { - QString res {tr("Quassel IRC is mainly developed by:") + "
"}; - for (auto &&person : _aboutData->authors()) { + QString res{tr("Quassel IRC is mainly developed by:") + "
"}; + for (auto&& person : _aboutData->authors()) { res.append("
" + person.prettyName() + "
"); if (!person.emailAddress().isEmpty()) res.append("" + person.emailAddress() + "
"); @@ -94,39 +93,47 @@ QString AboutDlg::authors() const return res; } - QString AboutDlg::contributors() const { - QString res {tr("We would like to thank the following contributors (in alphabetical order) and everybody we forgot to mention here:") + "
"}; - for (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:") + + "
"}; + for (auto&& person : _aboutData->credits()) { res.append("
" + person.prettyName() + "
" + person.task() + "
"); } - res.append("
" + tr("...and anybody else finding and reporting bugs, giving feedback, helping others and being part of the community!")); + res.append("
" + + 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 {tr("Special thanks goes to:") + "
" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "
 John \"nox\" Hand
" + tr("for the original Quassel logo - The All-Seeing Eye") + "
Nuno Pinheiro
" + tr("for the Oxygen Quassel logo") + "
The KDE Visual Design Group
" + tr("for the amazing Breeze and Oxygen icon themes") + "
The Qt Company (formerly known as Qt Software, Nokia, Trolltech)
" + tr("for creating an awesome framework, and for sponsoring development with Greenphones, N810s, N950s and more") + "
" - }; + QString res{tr("Special thanks goes to:") + + "
" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "
 John \"nox\" Hand
" + + tr("for the original Quassel logo - The All-Seeing Eye") + + "
Nuno Pinheiro
" + + tr("for the Oxygen Quassel logo") + + "
The KDE Visual Design Group
" + + tr("for the amazing Breeze and Oxygen icon themes") + + "
The Qt Company (formerly known as Qt Software, Nokia, Trolltech)
" + + tr("for creating an awesome framework, and for sponsoring development with Greenphones, N810s, N950s and more") + + "
"}; return res; }