- theMap.insert( aProfileName, ProfileGeoData() );
-
- double aXg, anYg, aXd, anYd;
-
- QLineEdit* aLineEdit = qobject_cast<QLineEdit*>( myTable->cellWidget( aRow, 1 ) );
- QString aCellText = aLineEdit ? aLineEdit->text() : "";
- aXg = aCellText.toDouble( &isOk );
- if ( !isOk ) continue;
-
- aLineEdit = qobject_cast<QLineEdit*>( myTable->cellWidget( aRow, 2 ) );
- aCellText = aLineEdit ? aLineEdit->text() : "";
- anYg = aCellText.toDouble( &isOk );
- if ( !isOk ) continue;
-
- aLineEdit = qobject_cast<QLineEdit*>( myTable->cellWidget( aRow, 3 ) );
- aCellText = aLineEdit ? aLineEdit->text() : "";
- aXd = aCellText.toDouble( &isOk );
- if ( !isOk ) continue;
-
- aLineEdit = qobject_cast<QLineEdit*>( myTable->cellWidget( aRow, 4 ) );
- aCellText = aLineEdit ? aLineEdit->text() : "";
- anYd = aCellText.toDouble( &isOk );
- if ( !isOk ) continue;
+ aXg = myTable->item( aRow, 1 )->text();
+ anYg = myTable->item( aRow, 2 )->text();
+ aXd = myTable->item( aRow, 3 )->text();
+ anYd = myTable->item( aRow, 4 )->text();