author | displacer |
Wed, 07 Feb 2007 22:54:24 +0000 | |
changeset 412 | 2ddcc3e3e644 |
parent 268 | 88809d92e504 |
child 426 | 7523417d84d6 |
permissions | -rw-r--r-- |
187 | 1 |
/* |
2 |
* Hedgewars, a worms-like game |
|
3 |
* Copyright (c) 2006 Andrey Korotaev <unC0Rr@gmail.com> |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
17 |
*/ |
|
18 |
||
221 | 19 |
#include <QGridLayout> |
20 |
#include <QSvgWidget> |
|
235 | 21 |
#include <QLabel> |
248
aab204fe5061
Place QLabel with developers info on the QScrollArea
unc0rr
parents:
243
diff
changeset
|
22 |
#include <QScrollArea> |
187 | 23 |
#include "about.h" |
24 |
||
25 |
About::About(QWidget * parent) : |
|
26 |
QWidget(parent) |
|
27 |
{ |
|
221 | 28 |
QGridLayout *mainLayout = new QGridLayout(this); |
29 |
QSvgWidget *hedgehog = new QSvgWidget(":/res/Hedgehog.svg", this); |
|
30 |
hedgehog->setFixedSize(300, 329); |
|
235 | 31 |
mainLayout->addWidget(hedgehog, 0, 0, 2, 1); |
32 |
||
33 |
QLabel *lbl1 = new QLabel(this); |
|
34 |
||
35 |
lbl1->setOpenExternalLinks(true); |
|
36 |
lbl1->setText( |
|
236 | 37 |
"<div align=\"center\"><h1>Hedgewars</h1>" + |
268 | 38 |
QLabel::tr("<h3>Version 0.8.1</h3>") + |
236 | 39 |
"<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p><br>" + |
40 |
QLabel::tr("This program is distributed under the GNU General Public License") + |
|
235 | 41 |
"</div>" |
42 |
); |
|
43 |
lbl1->setWordWrap(true); |
|
44 |
mainLayout->addWidget(lbl1, 0, 1); |
|
45 |
||
248
aab204fe5061
Place QLabel with developers info on the QScrollArea
unc0rr
parents:
243
diff
changeset
|
46 |
QScrollArea *sa = new QScrollArea(this); |
aab204fe5061
Place QLabel with developers info on the QScrollArea
unc0rr
parents:
243
diff
changeset
|
47 |
sa->setWidgetResizable(true); |
aab204fe5061
Place QLabel with developers info on the QScrollArea
unc0rr
parents:
243
diff
changeset
|
48 |
sa->setFrameStyle(QFrame::NoFrame); |
235 | 49 |
QLabel *lbl2 = new QLabel(this); |
50 |
||
51 |
lbl2->setOpenExternalLinks(true); |
|
52 |
lbl2->setText( |
|
236 | 53 |
QLabel::tr("<h2>Developers:</h2>") + |
54 |
"<p>" |
|
235 | 55 |
"Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>" |
56 |
"Igor Ulyanov <<a href=\"mailto:iulyanov@gmail.com\">iulyanov@gmail.com</a>>" |
|
236 | 57 |
"</p>" + |
243 | 58 |
QLabel::tr("<h2>Translations:</h2><p>") + |
235 | 59 |
"english: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>" |
60 |
"russian: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>>" |
|
243 | 61 |
"</p>" + |
62 |
QLabel::tr("<h2>Special thanks:</h2><p>") + |
|
63 |
"Aleksey Andreev <<a href=\"mailto:blaknayabr@gmail.com\">blaknayabr@gmail.com</a>><br>" |
|
64 |
"Natasha Stafeeva <<a href=\"mailto:layout@pisem.net\">layout@pisem.net</a>>" |
|
254
6bdb58eff749
Special thanks size fixed with large font on linux (workaround)
displacer
parents:
248
diff
changeset
|
65 |
"</p>" + |
6bdb58eff749
Special thanks size fixed with large font on linux (workaround)
displacer
parents:
248
diff
changeset
|
66 |
QLabel::tr("<h2></h2><p></p>") |
235 | 67 |
); |
68 |
lbl2->setWordWrap(true); |
|
248
aab204fe5061
Place QLabel with developers info on the QScrollArea
unc0rr
parents:
243
diff
changeset
|
69 |
sa->setWidget(lbl2); |
aab204fe5061
Place QLabel with developers info on the QScrollArea
unc0rr
parents:
243
diff
changeset
|
70 |
mainLayout->addWidget(sa, 1, 1); |
187 | 71 |
} |