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"
20 "<a href=\"http://www.gnu.org/licenses/\">"
21 "<http://www.gnu.org/licenses/></a>."
24 setWindowTitle(tr("About"));
25 mainLayout = new QVBoxLayout(this);
26 setLayout(mainLayout);
28 imageLabel = new QLabel(this);
29 mainLabel = new QLabel(this);
30 licenseLabel = new QLabel(this);
31 mainLayout->addWidget(imageLabel, 0, Qt::AlignCenter);
32 mainLayout->addWidget(mainLabel);
33 mainLayout->addWidget(licenseLabel);
34 mainLabel->setOpenExternalLinks(true);
36 QImage img(":/icons/mdictionary.png");
37 imageLabel->setPixmap(QPixmap::fromImage(img));
38 imageLabel->resize(imageLabel->pixmap()->size());
39 imageLabel->setMinimumSize(imageLabel->pixmap()->size());
41 mainLabel->setText(infoNote + comarchNote);
43 licenseLabel->setText(licenseNote);
44 licenseLabel->setWordWrap(true);
45 licenseLabel->setOpenExternalLinks(true);
50 mainLayout->addSpacing(20);