Merge branch 'master' of git@github.com:danmar/cppcheck
Conflicts: gui/mainwindow.cpp
This commit is contained in:
commit
7d2c26bd25
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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<QAction *> actions = mLanguages->actions();
|
||||
for (int i = 0;i < actions.size();i++)
|
||||
for (int i = 0; i < actions.size(); i++)
|
||||
{
|
||||
if (actions[i] == action)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue