{
QTableWidgetItem* anItem = item( row, col );
if ( anItem ) {
+ bool isSignalsBlocked = signalsBlocked();
+ blockSignals( true );
+
Qt::ItemFlags f = anItem->flags();
if ( !isEditable ) f = f & ~Qt::ItemIsEditable;
else f = f | Qt::ItemIsEditable;
anItem->setFlags( f );
+
+ blockSignals( isSignalsBlocked );
}
}
}
theTable->setEditable(false, theTable->rowCount() - 1, 4);
-
+
if (aCurrRow >=0 && aCurrRow < theTable->rowCount() &&
aCurrCol >=0 && aCurrCol < theTable->rowCount())
theTable->setCurrentCell(aCurrRow, aCurrCol);