Changeset 89 in tspsg-svn for trunk/src/mainwindow.cpp
- Timestamp:
- Jan 12, 2010, 4:27:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mainwindow.cpp
r87 r89 383 383 { 384 384 TMatrix matrix; 385 QList< qreal> row;385 QList<double> row; 386 386 int n = spinCities->value(); 387 387 bool ok; … … 389 389 row.clear(); 390 390 for (int c = 0; c < n; c++) { 391 row.append(tspmodel->index(r,c).data(Qt::UserRole).to Real(&ok));391 row.append(tspmodel->index(r,c).data(Qt::UserRole).toDouble(&ok)); 392 392 if (!ok) { 393 393 QMessageBox(QMessageBox::Critical,tr("Data error"),tr("Error in cell [Row %1; Column %2]: Invalid data format.").arg(r + 1).arg(c + 1),QMessageBox::Ok,this).exec();
Note: See TracChangeset
for help on using the changeset viewer.