X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Faboutdlg.cpp;h=14684888aec153b1691db122b2540ef81fa8a087;hp=c597f4ed4f3f6fd1c195ed04bb54b53af33a7099;hb=c27d5bfbe80bfeb583a25404f4ccee4b70b010e0;hpb=69e767d13b6c2880a46d8a84cfab6678b15b26cf diff --git a/src/qtui/aboutdlg.cpp b/src/qtui/aboutdlg.cpp index c597f4ed..14684888 100644 --- a/src/qtui/aboutdlg.cpp +++ b/src/qtui/aboutdlg.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -21,10 +21,12 @@ #include "aboutdlg.h" #include -#include +#include #include "aboutdata.h" +#include "icon.h" #include "quassel.h" +#include "util.h" AboutDlg::AboutDlg(QWidget *parent) : QDialog(parent) @@ -33,18 +35,29 @@ AboutDlg::AboutDlg(QWidget *parent) AboutData::setQuasselPersons(_aboutData); ui.setupUi(this); - ui.quasselLogo->setPixmap(QIcon(":/icons/quassel-64.png").pixmap(64)); // don't let the icon theme affect our logo here + ui.quasselLogo->setPixmap(QPixmap{":/pics/quassel-64.svg"}); // don't let the icon theme affect our logo here - ui.versionLabel->setText(QString(tr("Version: %1
Version date: %2
Protocol version: %3")) - .arg(Quassel::buildInfo().fancyVersionString) - .arg(Quassel::buildInfo().commitDate) - .arg(Quassel::buildInfo().protocolVersion)); + QString versionDate; + if (Quassel::buildInfo().commitDate.isEmpty()) { + // This shouldn't happen, but sometimes the packaging environment cannot set a proper + // date/time. Add a fallback just in case. + versionDate = QString("%1").arg(tr("Unknown date")); + } + else { + versionDate = tryFormatUnixEpoch(Quassel::buildInfo().commitDate); + } + ui.versionLabel->setText(QString(tr("Version: %1
" + "Version date: %2
" + "Protocol version: %3")) + .arg(Quassel::buildInfo().fancyVersionString) + .arg(versionDate) + .arg(Quassel::buildInfo().protocolVersion)); ui.aboutTextBrowser->setHtml(about()); ui.authorTextBrowser->setHtml(authors()); ui.contributorTextBrowser->setHtml(contributors()); ui.thanksToTextBrowser->setHtml(thanksTo()); - setWindowIcon(QIcon::fromTheme("quassel", QIcon(":/icons/quassel.png"))); + setWindowIcon(icon::get("quassel")); } @@ -52,16 +65,16 @@ QString AboutDlg::about() const { QString res {tr("A modern, distributed IRC Client

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

" - "Quassel IRC is dual-licensed under GPLv2 and " - "GPLv3.
" + "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 http://bugs.quassel-irc.org to report bugs." - ).arg("2005-2016") + "Please use https://bugs.quassel-irc.org to report bugs." + ).arg("2005-2018") }; return res; @@ -101,9 +114,9 @@ QString AboutDlg::thanksTo() const "John \"nox\" Hand" "" + tr("for the original Quassel logo - The All-Seeing Eye") + "" "" - "" + "" "Nuno Pinheiro" - "" + tr("for the current Quassel logo") + "" + "" + tr("for the Oxygen Quassel logo") + "" "" "" "The KDE Visual Design Group"