Astyle fixes.

This commit is contained in:
Kimmo Varis 2009-07-02 18:57:09 +03:00
parent 85d89c29c0
commit df7ca21a31
3 changed files with 5 additions and 5 deletions

View File

@ -136,7 +136,7 @@ void ApplicationList::Copy(ApplicationList *list)
} }
Clear(); Clear();
for (int i = 0;i < list->GetApplicationCount();i++) for (int i = 0; i < list->GetApplicationCount(); i++)
{ {
AddApplicationType(list->GetApplicationName(i), list->GetApplicationPath(i)); AddApplicationType(list->GetApplicationName(i), list->GetApplicationPath(i));
} }

View File

@ -107,7 +107,7 @@ void MainWindow::CreateLanguageMenuItems()
QStringList languages = mTranslation->GetNames(); 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 //Create an action for each language
//Language name is pre translated //Language name is pre translated
@ -580,7 +580,7 @@ void MainWindow::SetLanguage(int index)
if (languages.size() <= actions.size()) if (languages.size() <= actions.size())
{ {
for (int i=0;i<languages.size();i++) for (int i = 0; i < languages.size(); i++)
{ {
actions[i]->setText(tr(languages[i].toLatin1())); actions[i]->setText(tr(languages[i].toLatin1()));
} }
@ -593,7 +593,7 @@ void MainWindow::MapLanguage(QAction *action)
{ {
//Find the action that has the language that user clicked //Find the action that has the language that user clicked
QList<QAction *> actions = mLanguages->actions(); 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) if (actions[i] == action)
{ {

View File

@ -354,7 +354,7 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e)
if (mContextItem && mApplications->GetApplicationCount() > 0 && mContextItem->parent()) if (mContextItem && mApplications->GetApplicationCount() > 0 && mContextItem->parent())
{ {
//Go through all applications and add them to the context menu //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 //Create an action for the application
QAction *start = new QAction(mApplications->GetApplicationName(i), &menu); QAction *start = new QAction(mApplications->GetApplicationName(i), &menu);