GUI: Add homepage URL to About-dialog.

This commit is contained in:
Kimmo Varis 2009-07-02 18:56:18 +03:00
parent 97508ade3f
commit 85d89c29c0
6 changed files with 36 additions and 5 deletions

View File

@ -46,12 +46,18 @@ AboutDialog::AboutDialog(const QString &version, QWidget *parent)
QLabel *gpl = new QLabel(tr("This program is licensed under the terms " \
"of the GNU General Public License version 3"));
gpl->setWordWrap(true);
QString url = "<a href=\"http://cppcheck.wiki.sourceforge.net/\">http://cppcheck.wiki.sourceforge.net/</a>";
QString homepageText = QString(tr("Visit Cppcheck homepage at %1")).arg(url);
QLabel *homepage = new QLabel(homepageText);
homepage->setOpenExternalLinks(true);
homepage->setWordWrap(true);
QPushButton *quit = new QPushButton(tr("Close"));
mainLayout->addWidget(name);
mainLayout->addWidget(ver);
mainLayout->addWidget(copy);
mainLayout->addWidget(gpl);
mainLayout->addWidget(homepage);
mainLayout->addStretch();
mainLayout->addLayout(btnLayout);

View File

@ -24,7 +24,12 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="aboutdialog.cpp" line="49"/>
<location filename="aboutdialog.cpp" line="50"/>
<source>Visit Cppcheck homepage at %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="aboutdialog.cpp" line="54"/>
<source>Close</source>
<translation type="unfinished"></translation>
</message>

View File

@ -24,7 +24,12 @@
<translation>This program is licensed under the terms of the GNU General Public License version 3</translation>
</message>
<message>
<location filename="aboutdialog.cpp" line="49"/>
<location filename="aboutdialog.cpp" line="50"/>
<source>Visit Cppcheck homepage at %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="aboutdialog.cpp" line="54"/>
<source>Close</source>
<translation>Close</translation>
</message>

View File

@ -24,7 +24,12 @@
<translation>Tämä ohjelma on lisensoitu GNU General Public Lisenssin version 3 alaiseksi</translation>
</message>
<message>
<location filename="aboutdialog.cpp" line="49"/>
<location filename="aboutdialog.cpp" line="50"/>
<source>Visit Cppcheck homepage at %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="aboutdialog.cpp" line="54"/>
<source>Close</source>
<translation>Sulje</translation>
</message>

View File

@ -24,7 +24,12 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="aboutdialog.cpp" line="49"/>
<location filename="aboutdialog.cpp" line="50"/>
<source>Visit Cppcheck homepage at %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="aboutdialog.cpp" line="54"/>
<source>Close</source>
<translation type="unfinished"></translation>
</message>

View File

@ -24,7 +24,12 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="aboutdialog.cpp" line="49"/>
<location filename="aboutdialog.cpp" line="50"/>
<source>Visit Cppcheck homepage at %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="aboutdialog.cpp" line="54"/>
<source>Close</source>
<translation type="unfinished"></translation>
</message>