rows.clear();
QList<QTableWidgetSelectionRange> selRanges = table->selectedRanges();
QTableWidgetSelectionRange range;
- foreach( range, selRanges )
+ Q_FOREACH( range, selRanges )
{
for ( int row = range.topRow(); row <= range.bottomRow(); ++row )
if ( !rows.count( row ))
QList<int> rows;
SMESH::getSelectedRows( table(), rows );
int row;
- foreach ( row, rows )
+ Q_FOREACH ( row, rows )
{
int curSub = table()->item(row, COL_SHAPEID)->text().toInt();
GEOM::GEOM_Object_wrap shape = SMESH::getSubShape( curSub, myMainShape );
QList<int> rows;
SMESH::getSelectedRows( table(), rows );
int row;
- foreach ( row, rows )
+ Q_FOREACH ( row, rows )
{
bool hasBadMesh = ( !table()->item(row, COL_BAD_MESH)->text().isEmpty() );
if ( hasBadMesh ) {
QList<int> rows;
int nbSelected = SMESH::getSelectedRows( table(), rows );
int row;
- foreach ( row, rows )
+ Q_FOREACH ( row, rows )
{
bool hasData = ( !table()->item( row, COL_SHAPE )->text().isEmpty() );
bool isPublished = ( !table()->item( row, COL_PUBLISHED )->text().isEmpty() );
bool showOnly = true;
int row;
- foreach ( row, rows )
+ Q_FOREACH ( row, rows )
{
int curSub = table()->item( row, COL_SHAPEID )->text().toInt();
if ( curSub > 0 ) {