diff options
Diffstat (limited to 'src/frontend/htmldialogs/btaboutdialog.cpp')
-rw-r--r-- | src/frontend/htmldialogs/btaboutdialog.cpp | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/src/frontend/htmldialogs/btaboutdialog.cpp b/src/frontend/htmldialogs/btaboutdialog.cpp index 2c6f553..f8e6666 100644 --- a/src/frontend/htmldialogs/btaboutdialog.cpp +++ b/src/frontend/htmldialogs/btaboutdialog.cpp @@ -7,11 +7,13 @@ * **********/ -#include "btaboutdialog.h" +#include "frontend/htmldialogs/btaboutdialog.h" -#include "util/directoryutil.h" +#include "util/directory.h" + +// Sword includes: +#include <swversion.h> -#include "swversion.h" // Forwards static QString make_body(const QString& content); @@ -99,8 +101,10 @@ void BtAboutDialog::init_contributors_tab() { // sorted alphabetically (last name) content += "<ul>"; content += "<li>Horatiu Alexe</li>"; - content += "<li>Jan B&ecarron;lohoubek</li>"; + content += "<li>Jan Bělohoubek</li>"; content += "<li>Chun-shek Chan</li>"; + content += "<li>Nouhoun Y. Diarra</li>"; + content += "<li>Rafael Fagundes</li>"; content += "<li>Ilpo Kantonen</li>"; content += "<li>Pavel Laukko</li>"; content += "<li>Piotr Markiewicz</li>"; @@ -111,8 +115,11 @@ void BtAboutDialog::init_contributors_tab() { content += "<li>Jaak Ristioja</li>"; content += "<li>Igor Rykhlin</li>"; content += "<li>Vlad Savitsky</li>"; + content += "<li>Henrik Sonesson</li>"; content += "<li>Johan van der Lingen</li>"; content += "<li>Jean Van Schaftingen</li>"; + content += "<li>Roland Teschner</li>"; + content += "<li>Giovanni Tedaldi</li>"; content += "<li>Dmitry Yurevich</li>"; content += "<li>Esteban Zeller</li>"; content += "</ul>"; @@ -149,21 +156,21 @@ void BtAboutDialog::init_qt_tab() { content += make_br() + make_br(); content += make_center(make_bold("Qt")); content += make_br(); - content += tr("This program uses Qt Open Source Edition version %1.").arg(qVersion()); - //content += qVersion(); + content += tr("This program uses Qt version %1.").arg(qVersion()); content += make_br() + make_br(); - content += tr("Qt Open Source Edition is intended for the development of Open Source applications."); - content += " "; - content += tr("Qt is a C++ toolkit for cross-platform application development."); + content += tr("Qt is a cross-platform application and UI framework, created with C++ language. It has been released under the LGPL license."); content += make_br() + make_br(); - content += tr("Please see "); - content += make_link("http://qtsoftware.com/company/model/", "qtsoftware.com/company/model"); - content += tr(" for an overview of Qt licensing."); + content += make_link("http://qt.nokia.com/", "http://qt.nokia.com/"); + //content += tr("Please see "); + //content += make_link("http://qtsoftware.com/company/model/", "qtsoftware.com/company/model"); + //content += tr(" for an overview of Qt licensing."); QString qt = make_html(make_head("") + make_body(content)); setHtml(qt); } void BtAboutDialog::init_lic_tab() { + namespace DU = util::directory; + selectTab(4); setTabText(tr("License")); @@ -173,12 +180,12 @@ void BtAboutDialog::init_lic_tab() { text += tr("You can download and use (but not distribute) the program for personal, private, public or commercial purposes without restrictions."); text += " "; text += tr("You can give away or distribute the program if you also distribute the corresponding source code."); - text += "<br><br>"; + text += "<br/><br/>"; //text += tr("It is allowed to distribute software under GPL for a small fee, but it must be accompanied with the complete source code, and the fact that it is freely available with no cost must not be hidden."); - //text += "<br><br>"; + //text += "<br/><br/>"; text += tr("The complete legally binding license is below."); - QFile licFile(util::filesystem::DirectoryUtil::getLicenseDir().path() + "/license.html"); + QFile licFile(DU::getLicenseDir().path() + "/license.html"); if (licFile.open(QFile::ReadOnly)) { QByteArray html; while (!licFile.atEnd()) { @@ -200,7 +207,7 @@ static QString make_center(const QString& content) { } static QString make_br() { - return "<br>"; + return "<br/>"; } static QString make_bold(const QString& content) { @@ -229,7 +236,9 @@ static QString make_version() { } static QString make_file_icon(const QString& icon) { - QString dir = "<img src=file://" + util::filesystem::DirectoryUtil::getIconDir().path(); + namespace DU = util::directory; + + QString dir("<img src=file://" + DU::getIconDir().path()); return dir + "/" + icon + ".png >"; } |