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/applicationlist.cpp b/gui/applicationlist.cpp index 9aba78dda..c11cc0d4a 100644 --- a/gui/applicationlist.cpp +++ b/gui/applicationlist.cpp @@ -136,7 +136,7 @@ void ApplicationList::Copy(ApplicationList *list) } Clear(); - for (int i = 0;i < list->GetApplicationCount();i++) + for (int i = 0; i < list->GetApplicationCount(); i++) { AddApplicationType(list->GetApplicationName(i), list->GetApplicationPath(i)); } diff --git a/gui/cppcheck_de.ts b/gui/cppcheck_de.ts index b6d5e7d8e..b01bbed45 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 7c11c9a97..fd546d4bc 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 23cd32fa4..1735f1cf6 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 64e7ce4af..7820ec21d 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 64e7ce4af..7820ec21d 100644 --- a/gui/cppcheck_se.ts +++ b/gui/cppcheck_se.ts @@ -24,7 +24,12 @@ - + + Visit Cppcheck homepage at %1 + + + + Close diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 7cc655db4..73235127a 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -107,7 +107,7 @@ void MainWindow::CreateLanguageMenuItems() QStringList languages = mTranslation->GetNames(); - for (int i = 0;i < languages.size();i++) + for (int i = 0; i < languages.size(); i++) { //Create an action for each language //Language name is pre translated @@ -593,7 +593,7 @@ void MainWindow::MapLanguage(QAction *action) { //Find the action that has the language that user clicked QList actions = mLanguages->actions(); - for (int i = 0;i < actions.size();i++) + for (int i = 0; i < actions.size(); i++) { if (actions[i] == action) { diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index 9d3cfabbc..6dc40b4dd 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -354,7 +354,7 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e) if (mContextItem && mApplications->GetApplicationCount() > 0 && mContextItem->parent()) { //Go through all applications and add them to the context menu - for (int i = 0;i < mApplications->GetApplicationCount();i++) + for (int i = 0; i < mApplications->GetApplicationCount(); i++) { //Create an action for the application QAction *start = new QAction(mApplications->GetApplicationName(i), &menu);