15 * along with this program; if not, write to the Free Software |
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 |
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> |
|
21 #include <QLabel> |
20 #include <QLabel> |
22 #include <QTextBrowser> |
21 #include <QTextBrowser> |
23 #include "about.h" |
22 #include "about.h" |
24 #include "hwconsts.h" |
23 #include "hwconsts.h" |
25 |
24 |
26 About::About(QWidget * parent) : |
25 About::About(QWidget * parent) : |
27 QWidget(parent) |
26 QWidget(parent) |
28 { |
27 { |
29 QGridLayout *mainLayout = new QGridLayout(this); |
28 QGridLayout *mainLayout = new QGridLayout(this); |
30 QSvgWidget *hedgehog = new QSvgWidget(":/res/Hedgehog.svg", this); |
29 QLabel *imageLabel = new QLabel; |
31 hedgehog->setFixedSize(300, 329); |
30 QImage image(":/res/Hedgehog.png"); |
32 mainLayout->addWidget(hedgehog, 0, 0, 2, 1); |
31 |
|
32 imageLabel->setPixmap(QPixmap::fromImage(image)); |
|
33 imageLabel->setScaledContents(true); |
|
34 |
|
35 imageLabel->setMinimumWidth(2.8); |
|
36 imageLabel->setMaximumWidth(280); |
|
37 imageLabel->setMinimumHeight(30); |
|
38 imageLabel->setMaximumHeight(300); |
|
39 mainLayout->addWidget(imageLabel, 0, 0, 2, 1); |
33 |
40 |
34 QLabel *lbl1 = new QLabel(this); |
41 QLabel *lbl1 = new QLabel(this); |
35 |
42 |
36 lbl1->setOpenExternalLinks(true); |
43 lbl1->setOpenExternalLinks(true); |
37 lbl1->setText( |
44 lbl1->setText( |