Version 0.3
[aspt.git] / abouttab.cc
1 /*******************************************************************
2 Jan Cermak | johniez | aspt.johniez.com
3 Creative Commons 2.5 Attribution-NonCommercial-NoDerivs 2.5 license
4 http://creativecommons.org/licenses/by-nc-nd/2.5/legalcode
5 *******************************************************************/
6
7 #include "abouttab.h"
8
9 /**
10  * \brief About Tab constructor.
11  */
12 AboutTab::AboutTab(QWidget *parent) : QWidget(parent) {
13         init();
14 }
15
16 /**
17  * \brief About Tab destructor.
18  */
19 AboutTab::~AboutTab() {
20         delete label;
21         delete mainLayout;
22 }
23
24 /**
25  * \brief About Tab initializer.
26  *
27  * Set some text into about tab.
28  */
29 void AboutTab::init() {
30         mainLayout = new QVBoxLayout;
31         QString text;
32         text = "<h3>Another SoccerProject Tool</h3>";
33         text += "v 0.3.0 | 5.5.2019<br><br>";
34         text += "johniez | <a href=\"https://aspt.johniez.com\">aspt homepage</a>";
35         text += "<hr>";
36         text += "<b>" + tr("Translators") + ":</b><br>";
37         text += "UniCool [RO]<br>";
38         text += "Gladiator [PL]<br>";
39         text += "arsportas [LT]<br>";
40         text += "<hr>";
41         text += "<a href=\"http://creativecommons.org/licenses/by-nc-nd/2.5/legalcode\">Creative Commons 2.5 Attribution-NonCommercial-NoDerivs 2.5 license</a>";
42         label = new QLabel(text);
43         mainLayout->addWidget(label);
44         setLayout(mainLayout);
45 }