16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
17 */ |
17 */ |
18 |
18 |
19 #include <QGridLayout> |
19 #include <QGridLayout> |
20 #include <QSvgWidget> |
20 #include <QSvgWidget> |
|
21 #include <QLabel> |
21 #include "about.h" |
22 #include "about.h" |
22 |
23 |
23 About::About(QWidget * parent) : |
24 About::About(QWidget * parent) : |
24 QWidget(parent) |
25 QWidget(parent) |
25 { |
26 { |
26 QGridLayout *mainLayout = new QGridLayout(this); |
27 QGridLayout *mainLayout = new QGridLayout(this); |
27 QSvgWidget *hedgehog = new QSvgWidget(":/res/Hedgehog.svg", this); |
28 QSvgWidget *hedgehog = new QSvgWidget(":/res/Hedgehog.svg", this); |
28 hedgehog->setFixedSize(300, 329); |
29 hedgehog->setFixedSize(300, 329); |
29 mainLayout->addWidget(hedgehog); |
30 mainLayout->addWidget(hedgehog, 0, 0, 2, 1); |
|
31 |
|
32 QLabel *lbl1 = new QLabel(this); |
|
33 |
|
34 lbl1->setOpenExternalLinks(true); |
|
35 lbl1->setText( |
|
36 "<div align=\"center\"><h1>Hedgewars</h1>" |
|
37 "<h3>Version 0.8</h3>" |
|
38 "<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p><br>" |
|
39 "This program is distributed under the GNU General Public License" |
|
40 "</div>" |
|
41 ); |
|
42 lbl1->setWordWrap(true); |
|
43 mainLayout->addWidget(lbl1, 0, 1); |
|
44 |
|
45 QLabel *lbl2 = new QLabel(this); |
|
46 |
|
47 lbl2->setOpenExternalLinks(true); |
|
48 lbl2->setText( |
|
49 "<h2>Developers:</h2><p>" |
|
50 "Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>" |
|
51 "Igor Ulyanov <<a href=\"mailto:iulyanov@gmail.com\">iulyanov@gmail.com</a>>" |
|
52 "</p>" |
|
53 "<h2>Translations:</h2>" |
|
54 "english: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>" |
|
55 "russian: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>>" |
|
56 ); |
|
57 lbl2->setWordWrap(true); |
|
58 mainLayout->addWidget(lbl2, 1, 1); |
30 } |
59 } |