From: <sv...@va...> - 2011-07-03 04:14:06
|
Author: cerion Date: 2011-07-03 05:09:15 +0100 (Sun, 03 Jul 2011) New Revision: 544 Log: tidy up some spaces/loops Modified: trunk/src/mainwindow.cpp Modified: trunk/src/mainwindow.cpp =================================================================== --- trunk/src/mainwindow.cpp 2011-07-01 14:02:54 UTC (rev 543) +++ trunk/src/mainwindow.cpp 2011-07-03 04:09:15 UTC (rev 544) @@ -402,8 +402,9 @@ menuProcess->addAction( actProcess_Run ); menuProcess->addAction( actProcess_Stop ); - foreach( QAction * actTool, toolActionGroup->actions() ) - menuTools->addAction( actTool ); + foreach( QAction * actTool, toolActionGroup->actions() ) { + menuTools->addAction( actTool ); + } menuHelp->addAction( ctxtHlpAction ); menuHelp->addSeparator(); @@ -577,9 +578,9 @@ // disable all actions in the tool actiongroup // TODO: nicer way to do this? - maybe connect sig/slot toolview to action? - foreach( QAction * actTool, toolActionGroup->actions() ) - actTool->setChecked( false ); - + foreach( QAction * actTool, toolActionGroup->actions() ) { + actTool->setChecked( false ); + } actFile_Close->setEnabled( false ); actProcess_Run->setEnabled( false ); actProcess_Stop->setEnabled( false ); |