2 * This file is part of Jenirok.
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.
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.
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/>.
19 #include <QtGui/QHBoxLayout>
20 #include <QtGui/QVBoxLayout>
21 #include <QtGui/QLabel>
22 #include <QtGui/QPixmap>
23 #include "aboutdialog.h"
25 AboutDialog::AboutDialog(QWidget* parent): QDialog(parent)
27 setWindowTitle(tr("About"));
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);
39 setLayout(mainLayout);