Commit 229dbc3d authored by Bart van der Velden's avatar Bart van der Velden

Add project URLs to About box (#68)

parent 5fd37a6f
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
#include <QPushButton> #include <QPushButton>
const char* About::kUrl = "https://gitorious.org/musiccollection";
About::About(QWidget *parent) About::About(QWidget *parent)
: QDialog(parent) : QDialog(parent)
{ {
...@@ -43,9 +41,17 @@ About::About(QWidget *parent) ...@@ -43,9 +41,17 @@ About::About(QWidget *parent)
title_font.setPointSize(title_font.pointSize() + 4); title_font.setPointSize(title_font.pointSize() + 4);
m_ui.title->setFont(title_font); m_ui.title->setFont(title_font);
m_urls
<< Contributor("Gitorious repository", 0, "https://gitorious.org/musiccollection")
<< Contributor("Jenkins Dashboard", 0,
"https://jenkins.muckingabout.eu/job/BuildMusicCollection/")
<< Contributor("Redmine Project Management", 0,
"https://redmine.muckingabout.eu/projects/music_collection");
m_authors << Contributor(QString::fromUtf8("Bart van der Velden"), "bart@muckingabout.eu", 0); m_authors << Contributor(QString::fromUtf8("Bart van der Velden"), "bart@muckingabout.eu", 0);
m_thanksTo m_thanksTo
<< Contributor("The Clementine Music Player Project", 0, "http://www.clementine-player.org/") << Contributor("The Clementine Music Player Project", 0,
"http://www.clementine-player.org/")
<< Contributor("The Amarok Project", 0, "http://amarok.kde.org/"); << Contributor("The Amarok Project", 0, "http://amarok.kde.org/");
qSort(m_authors); qSort(m_authors);
...@@ -58,11 +64,18 @@ About::About(QWidget *parent) ...@@ -58,11 +64,18 @@ About::About(QWidget *parent)
QString About::MakeHtml() const QString About::MakeHtml() const
{ {
QString ret = QString("<p><a href=\"%1\">%2</a></p>" QString ret = QString("<p><b>%3:</b>").arg(tr("Project URLs"));
"<p><b>%3:</b>").arg(kUrl, kUrl, tr("Authors"));
foreach (const Contributor& contributor, m_authors) foreach(const Contributor& contributor, m_urls)
ret += "<br />" + MakeHtml(contributor); {
ret += "<br />" + MakeHtml(contributor);
}
ret += QString("</p><p><b>%3:</b>").arg(tr("Authors"));
foreach(const Contributor& contributor, m_authors)
{
ret += "<br />" + MakeHtml(contributor);
}
ret += QString("</p><p><b>%3:</b>").arg(tr("Thanks to")); ret += QString("</p><p><b>%3:</b>").arg(tr("Thanks to"));
......
...@@ -34,8 +34,6 @@ class About : public QDialog ...@@ -34,8 +34,6 @@ class About : public QDialog
public: public:
About(QWidget* parent = 0); About(QWidget* parent = 0);
static const char* kUrl;
struct Contributor struct Contributor
{ {
Contributor(const QString& name, const QString& email, const QString& url) Contributor(const QString& name, const QString& email, const QString& url)
...@@ -55,6 +53,7 @@ private: ...@@ -55,6 +53,7 @@ private:
private: private:
Ui::About m_ui; Ui::About m_ui;
QList<Contributor> m_urls; // The project urls
QList<Contributor> m_authors; // The list of authors QList<Contributor> m_authors; // The list of authors
QList<Contributor> m_thanksTo; // The list of people/projects to thank QList<Contributor> m_thanksTo; // The list of people/projects to thank
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment