Connection handling improved again. Added ability to bybass general Maemo connectivit...
[jenirok] / src / gui / aboutdialog.cpp
1 /*
2  * This file is part of Jenirok.
3  *
4  * Jenirok is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Jenirok 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 Jenirok.  If not, see <http://www.gnu.org/licenses/>.
16  *
17  */
18
19 #include <QtGui/QHBoxLayout>
20 #include <QtGui/QVBoxLayout>
21 #include <QtGui/QLabel>
22 #include <QtGui/QPixmap>
23 #include "aboutdialog.h"
24
25 AboutDialog::AboutDialog(QWidget* parent): QDialog(parent)
26 {
27     setWindowTitle(tr("About"));
28
29     QHBoxLayout* mainLayout = new QHBoxLayout();
30     QPixmap pixmap(":/icons/icon.png");
31     QLabel* image = new QLabel;
32     image->setPixmap(pixmap);
33     mainLayout->addWidget(image, 0, Qt::AlignLeft);
34     mainLayout->addSpacing(20);
35     QLabel* text = new QLabel("<font size='4'><b>Jenirok</b></font><br>(c) 2010 Jesse Hakanen<br><a href='http://jenirok.garage.maemo.org'>http://jenirok.garage.maemo.org</a>");
36     text->setOpenExternalLinks(true);
37     mainLayout->addWidget(text, 10, Qt::AlignLeft);
38
39     setLayout(mainLayout);
40 }