Fix for IPAL19590: Qt4 porting: Segmentation violation at Modification - add Quadratic Tetrahedron.

This commit is contained in:
mkr 2008-04-29 13:58:41 +00:00
parent 14f66eecc8
commit 5c72fdd558

View File

@ -549,9 +549,13 @@ void SMESHGUI_AddQuadraticElementDlg::Init()
for ( int row = 0; row < myTable->rowCount(); row++ ) for ( int row = 0; row < myTable->rowCount(); row++ )
{ {
myTable->setItem( row, 0, new QTableWidgetItem( "" ) );
SMESHGUI_IdEditItem* anEditItem = new SMESHGUI_IdEditItem( "" ); SMESHGUI_IdEditItem* anEditItem = new SMESHGUI_IdEditItem( "" );
anEditItem->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsEnabled); anEditItem->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsEnabled);
myTable->setItem(row, 1, anEditItem); myTable->setItem(row, 1, anEditItem);
myTable->setItem( row, 2, new QTableWidgetItem( "" ) );
} }
/* signals and slots connections */ /* signals and slots connections */