From 85d89c29c093461943902e48bbf41f5580a38484 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Thu, 2 Jul 2009 18:56:18 +0300 Subject: [PATCH] GUI: Add homepage URL to About-dialog. --- gui/aboutdialog.cpp | 6 ++++++ gui/cppcheck_de.ts | 7 ++++++- gui/cppcheck_en.ts | 7 ++++++- gui/cppcheck_fi.ts | 7 ++++++- gui/cppcheck_ru.ts | 7 ++++++- gui/cppcheck_se.ts | 7 ++++++- 6 files changed, 36 insertions(+), 5 deletions(-) diff --git a/gui/aboutdialog.cpp b/gui/aboutdialog.cpp index 842ca623e..6734abc7e 100644 --- a/gui/aboutdialog.cpp +++ b/gui/aboutdialog.cpp @@ -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 = "http://cppcheck.wiki.sourceforge.net/"; + 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); diff --git a/gui/cppcheck_de.ts b/gui/cppcheck_de.ts index c58851fdd..884ac609a 100644 --- a/gui/cppcheck_de.ts +++ b/gui/cppcheck_de.ts @@ -24,7 +24,12 @@ - + + Visit Cppcheck homepage at %1 + + + + Close diff --git a/gui/cppcheck_en.ts b/gui/cppcheck_en.ts index f81d86107..63e0328cf 100644 --- a/gui/cppcheck_en.ts +++ b/gui/cppcheck_en.ts @@ -24,7 +24,12 @@ This program is licensed under the terms of the GNU General Public License version 3 - + + Visit Cppcheck homepage at %1 + + + + Close Close diff --git a/gui/cppcheck_fi.ts b/gui/cppcheck_fi.ts index 83f7e051a..3f66e9934 100644 --- a/gui/cppcheck_fi.ts +++ b/gui/cppcheck_fi.ts @@ -24,7 +24,12 @@ Tämä ohjelma on lisensoitu GNU General Public Lisenssin version 3 alaiseksi - + + Visit Cppcheck homepage at %1 + + + + Close Sulje diff --git a/gui/cppcheck_ru.ts b/gui/cppcheck_ru.ts index cbca18d0b..2e9e100f5 100644 --- a/gui/cppcheck_ru.ts +++ b/gui/cppcheck_ru.ts @@ -24,7 +24,12 @@ - + + Visit Cppcheck homepage at %1 + + + + Close diff --git a/gui/cppcheck_se.ts b/gui/cppcheck_se.ts index cbca18d0b..2e9e100f5 100644 --- a/gui/cppcheck_se.ts +++ b/gui/cppcheck_se.ts @@ -24,7 +24,12 @@ - + + Visit Cppcheck homepage at %1 + + + + Close