else if (aNbPlanes < aNbRows)
myPosTable->setRowCount(aNbPlanes);
+ QString str("Plane# %1");
+ QStringList aLabels;
int aMin = (aNbRows < aNbPlanes)? aNbRows : aNbPlanes;
for (int i = 0; i<aMin; i++)
{
aModel->setData( anIndex, QVariant( myCutLines->GetLinePosition(i) ), Qt::DisplayRole );
//myPosTable->setText(i, 0, QString::number(myCutLines->GetLinePosition(i)));
myPosTable->item( i, 1 )->setCheckState(myCutLines->IsDefaultPosition(i) ? Qt::Checked : Qt::Unchecked );
+ aLabels.append( str.arg(i+1) );
}
//QHeader *vh = myPosTable->verticalHeader();
- QString str("Plane# %1");
- QStringList aLabels;
for (int i=aMin; i<aNbPlanes; i++) {
/*VisuGUI_NumEditItem* aEditItem = new VisuGUI_NumEditItem
(myPosTable, QTableItem::OnTyping, QString::number(myCutLines->GetLinePosition(i)));*/
else if (aNbPlanes < aNbRows)
myPosTable->setRowCount(aNbPlanes);
+ QStringList aLabels;
+ QString str("Plane# %1");
int aMin = (aNbRows < aNbPlanes)? aNbRows : aNbPlanes;
for (int i = 0; i<aMin; i++) {
myPosTable->item( i, 0 )->setText( QString::number(myCutPlanes->GetPlanePosition(i)));
myPosTable->item( i, 1 )->setCheckState( myCutPlanes->IsDefault(i) ? Qt::Checked : Qt::Unchecked);
+ aLabels.append( str.arg(i+1) );
}
//QHeader *vh = myPosTable->verticalHeader();
- QStringList aLabels;
- QString str("Plane# %1");
for (int i=aMin; i<aNbPlanes; i++) {
QTableWidgetItem* aEditItem = new QTableWidgetItem();
aEditItem->setText( QString::number(myCutPlanes->GetPlanePosition(i)));