Astyle formatting.

This commit is contained in:
Vesa Pikki 2009-03-22 19:38:03 +02:00
parent 856b3cd949
commit 55ad06a7b2
4 changed files with 16 additions and 15 deletions

View File

@ -109,11 +109,11 @@ void MainWindow::LoadSettings()
mActionShowUnused.setChecked(mSettings.value(tr("Show unused"), true).toBool());
mActionShowErrors.setChecked(mSettings.value(tr("Show errors"), true).toBool());
mResults.ShowResults(SHOW_ALL,mActionShowAll.isChecked());
mResults.ShowResults(SHOW_ERRORS,mActionShowErrors.isChecked());
mResults.ShowResults(SHOW_SECURITY,mActionShowSecurity.isChecked());
mResults.ShowResults(SHOW_STYLE,mActionShowStyle.isChecked());
mResults.ShowResults(SHOW_UNUSED,mActionShowUnused.isChecked());
mResults.ShowResults(SHOW_ALL, mActionShowAll.isChecked());
mResults.ShowResults(SHOW_ERRORS, mActionShowErrors.isChecked());
mResults.ShowResults(SHOW_SECURITY, mActionShowSecurity.isChecked());
mResults.ShowResults(SHOW_STYLE, mActionShowStyle.isChecked());
mResults.ShowResults(SHOW_UNUSED, mActionShowUnused.isChecked());
}
void MainWindow::SaveSettings()
@ -270,25 +270,25 @@ void MainWindow::EnableCheckButtons(bool enable)
void MainWindow::ShowAll(bool checked)
{
mResults.ShowResults(SHOW_ALL,checked);
mResults.ShowResults(SHOW_ALL, checked);
}
void MainWindow::ShowSecurity(bool checked)
{
mResults.ShowResults(SHOW_SECURITY,checked);
mResults.ShowResults(SHOW_SECURITY, checked);
}
void MainWindow::ShowStyle(bool checked)
{
mResults.ShowResults(SHOW_STYLE,checked);
mResults.ShowResults(SHOW_STYLE, checked);
}
void MainWindow::ShowUnused(bool checked)
{
mResults.ShowResults(SHOW_UNUSED,checked);
mResults.ShowResults(SHOW_UNUSED, checked);
}
void MainWindow::ShowErrors(bool checked)
{
mResults.ShowResults(SHOW_ERRORS,checked);
mResults.ShowResults(SHOW_ERRORS, checked);
}

View File

@ -69,11 +69,11 @@ void ResultsTree::AddErrorItem(const QString &file,
item.message = message;
item.files = files;
item.lines = lines;
mItems<<item;
mItems << item;
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()
{
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])
{

View File

@ -63,7 +63,8 @@ protected:
ShowTypes SeverityToShowType(const QString &severity);
QString ShowTypeToString(ShowTypes type);
typedef struct {
typedef struct
{
QString file;
ShowTypes type;
QString message;

View File

@ -66,5 +66,5 @@ void ResultsView::Error(const QString &file,
void ResultsView::ShowResults(ShowTypes type, bool show)
{
mTree->ShowResults(type,show);
mTree->ShowResults(type, show);
}