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(QString::fromUtf8("<font size='4'><b>Jenirok</b></font><br><font size='3'>(c) 2010 Jesse Hakanen</font><font size='2'><br> - Norwegian translation by Eirik Lindem and Jørgen Sogn<br> - Swedish translation by Torbjörn Svangård<br> - German translation and German phonebook implementation by Konrad Feldmeier<br></font><font size='3'><a href='http://jenirok.garage.maemo.org' style='color:#fff'>http://jenirok.garage.maemo.org</a></font>"));
36 text->setWordWrap(true);
37 text->setOpenExternalLinks(true);
38 mainLayout->addWidget(text, 10, Qt::AlignLeft);
40 setLayout(mainLayout);