QTableWidgetItem* anItem;
QList<int> rows;
- foreach( anItem, selItems ) {
+ Q_FOREACH( anItem, selItems ) {
int r = row( anItem );
if ( !rows.contains( r ) ) rows.append( r );
}
return;
myIsValid = true;
- emit NeedValidation();
+ Q_EMIT NeedValidation();
if (!myIsValid)
{
myEntityTypeGrp->button(myEntityType)->setChecked(true);
myTables[ myEntityType ]->updateGeometry();
adjustSize();
- emit EntityTypeChanged(theType);
+ Q_EMIT EntityTypeChanged(theType);
}
//=======================================================================
myAddWidgets[ anItem ]->SetDouble(AdditionalWidget::Tolerance, theCriterion.Tolerance);
}
- emit CriterionChanged(theRow, aType);
+ Q_EMIT CriterionChanged(theRow, aType);
}
//=======================================================================
QList<int> aRows = aTable->selectedRows(); // already sorted
int i;
- foreach( i, aRows )
+ Q_FOREACH( i, aRows )
{
removeAdditionalWidget(aTable, i);
aTable->removeRow(i);
{
if( !myIsLocked )
updateAdditionalWidget();
- emit CurrentChanged(theRow, theCol);
+ Q_EMIT CurrentChanged(theRow, theCol);
}
//=======================================================================
updateAdditionalWidget();
- emit CriterionChanged(row, entityType);
+ Q_EMIT CriterionChanged(row, entityType);
}
//=======================================================================
if( col == 0 )
onCriterionChanged(row, col, -1);
else if ( col == 2 )
- emit ThresholdChanged(row, GetType());
+ Q_EMIT ThresholdChanged(row, GetType());
}
//=======================================================================
disconnect(mySelectionMgr, 0, this, 0);
mySMESHGUI->ResetState();
accept();
- emit Accepted();
+ Q_EMIT Accepted();
}
}
return;
QStringList aStrList;
- foreach(int id, theIds)
+ Q_FOREACH(int id, theIds)
aStrList << QString::number(id);
if (theWg->inherits("QListWidget"))