1 #include "AboutWidget.h"
3 AboutWidget::AboutWidget(GUIInterface *parent): QDialog(parent)
5 QString infoNote, licenseNote, comarchNote;
6 infoNote = "<center><h2><u>mDictionary</u></h2></center>";
7 comarchNote = "<center>Meamo/Meego Mulitlingual Dictionary</center>";
8 comarchNote += "<center>Copyright 2006-2010, Comarch S.A. <br />";
9 comarchNote += "<a href=\"http://mdictionary.garage.maemo.org\">http://mdictionary.garage.maemo.org</a></center>";
10 licenseNote = "<br /><p><font size=\"small\">This program is free software: you can redistribute it and/or modify\n"
11 "it under the terms of the GNU General Public License as published by\n"
12 "the Free Software Foundation, either version 3 of the License, or\n"
13 "(at your option) any later version.<br />"
14 "This program is distributed in the hope that it will be useful,\n"
15 "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
16 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
17 "GNU General Public License for more details.<br />"
18 "You should have received a copy of the GNU General Public License\n"
19 "along with this program. If not, see <http://www.gnu.org/licenses/>."
22 setWindowTitle("About mDictionary");
23 mainLayout = new QVBoxLayout(this);
24 setLayout(mainLayout);
26 imageLabel = new QLabel(this);
27 mainLabel = new QLabel(this);
28 licenseLabel = new QLabel(this);
29 mainLayout->addWidget(imageLabel, 0, Qt::AlignCenter);
30 mainLayout->addWidget(mainLabel);
31 mainLayout->addWidget(licenseLabel);
32 mainLabel->setOpenExternalLinks(true);
34 QImage img(":/icons/mdictionary.png");
35 imageLabel->setPixmap(QPixmap::fromImage(img));
36 imageLabel->resize(imageLabel->pixmap()->size());
38 mainLabel->setText(infoNote + comarchNote);
40 licenseLabel->setText(licenseNote);
41 licenseLabel->setWordWrap(true);
44 mainLayout->addSpacing(20);