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