Astyle formatting.
This commit is contained in:
parent
856b3cd949
commit
55ad06a7b2
|
@ -109,11 +109,11 @@ void MainWindow::LoadSettings()
|
||||||
mActionShowUnused.setChecked(mSettings.value(tr("Show unused"), true).toBool());
|
mActionShowUnused.setChecked(mSettings.value(tr("Show unused"), true).toBool());
|
||||||
mActionShowErrors.setChecked(mSettings.value(tr("Show errors"), true).toBool());
|
mActionShowErrors.setChecked(mSettings.value(tr("Show errors"), true).toBool());
|
||||||
|
|
||||||
mResults.ShowResults(SHOW_ALL,mActionShowAll.isChecked());
|
mResults.ShowResults(SHOW_ALL, mActionShowAll.isChecked());
|
||||||
mResults.ShowResults(SHOW_ERRORS,mActionShowErrors.isChecked());
|
mResults.ShowResults(SHOW_ERRORS, mActionShowErrors.isChecked());
|
||||||
mResults.ShowResults(SHOW_SECURITY,mActionShowSecurity.isChecked());
|
mResults.ShowResults(SHOW_SECURITY, mActionShowSecurity.isChecked());
|
||||||
mResults.ShowResults(SHOW_STYLE,mActionShowStyle.isChecked());
|
mResults.ShowResults(SHOW_STYLE, mActionShowStyle.isChecked());
|
||||||
mResults.ShowResults(SHOW_UNUSED,mActionShowUnused.isChecked());
|
mResults.ShowResults(SHOW_UNUSED, mActionShowUnused.isChecked());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::SaveSettings()
|
void MainWindow::SaveSettings()
|
||||||
|
@ -270,25 +270,25 @@ void MainWindow::EnableCheckButtons(bool enable)
|
||||||
|
|
||||||
void MainWindow::ShowAll(bool checked)
|
void MainWindow::ShowAll(bool checked)
|
||||||
{
|
{
|
||||||
mResults.ShowResults(SHOW_ALL,checked);
|
mResults.ShowResults(SHOW_ALL, checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::ShowSecurity(bool checked)
|
void MainWindow::ShowSecurity(bool checked)
|
||||||
{
|
{
|
||||||
mResults.ShowResults(SHOW_SECURITY,checked);
|
mResults.ShowResults(SHOW_SECURITY, checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::ShowStyle(bool checked)
|
void MainWindow::ShowStyle(bool checked)
|
||||||
{
|
{
|
||||||
mResults.ShowResults(SHOW_STYLE,checked);
|
mResults.ShowResults(SHOW_STYLE, checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::ShowUnused(bool checked)
|
void MainWindow::ShowUnused(bool checked)
|
||||||
{
|
{
|
||||||
mResults.ShowResults(SHOW_UNUSED,checked);
|
mResults.ShowResults(SHOW_UNUSED, checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::ShowErrors(bool checked)
|
void MainWindow::ShowErrors(bool checked)
|
||||||
{
|
{
|
||||||
mResults.ShowResults(SHOW_ERRORS,checked);
|
mResults.ShowResults(SHOW_ERRORS, checked);
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,11 +69,11 @@ void ResultsTree::AddErrorItem(const QString &file,
|
||||||
item.message = message;
|
item.message = message;
|
||||||
item.files = files;
|
item.files = files;
|
||||||
item.lines = lines;
|
item.lines = lines;
|
||||||
mItems<<item;
|
mItems << item;
|
||||||
|
|
||||||
if (mShowTypes[item.type])
|
if (mShowTypes[item.type])
|
||||||
{
|
{
|
||||||
AddItem(mItems.size()-1);
|
AddItem(mItems.size() - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ void ResultsTree::ShowResults(ShowTypes type, bool show)
|
||||||
void ResultsTree::RefreshTree()
|
void ResultsTree::RefreshTree()
|
||||||
{
|
{
|
||||||
mModel.removeRows(0, mModel.rowCount());
|
mModel.removeRows(0, mModel.rowCount());
|
||||||
for (int i=0;i<mItems.size();i++)
|
for (int i = 0;i < mItems.size();i++)
|
||||||
{
|
{
|
||||||
if (mShowTypes[mItems[i].type])
|
if (mShowTypes[mItems[i].type])
|
||||||
{
|
{
|
||||||
|
|
|
@ -63,7 +63,8 @@ protected:
|
||||||
ShowTypes SeverityToShowType(const QString &severity);
|
ShowTypes SeverityToShowType(const QString &severity);
|
||||||
QString ShowTypeToString(ShowTypes type);
|
QString ShowTypeToString(ShowTypes type);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct
|
||||||
|
{
|
||||||
QString file;
|
QString file;
|
||||||
ShowTypes type;
|
ShowTypes type;
|
||||||
QString message;
|
QString message;
|
||||||
|
|
|
@ -66,5 +66,5 @@ void ResultsView::Error(const QString &file,
|
||||||
|
|
||||||
void ResultsView::ShowResults(ShowTypes type, bool show)
|
void ResultsView::ShowResults(ShowTypes type, bool show)
|
||||||
{
|
{
|
||||||
mTree->ShowResults(type,show);
|
mTree->ShowResults(type, show);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue