Changeset 89 in tspsg-svn for trunk/src/mainwindow.cpp


Ignore:
Timestamp:
Jan 12, 2010, 4:27:52 PM (15 years ago)
Author:
laleppa
Message:

Back to double to maintain compatibility between platforms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mainwindow.cpp

    r87 r89  
    383383{
    384384TMatrix matrix;
    385 QList<qreal> row;
     385QList<double> row;
    386386int n = spinCities->value();
    387387bool ok;
     
    389389                row.clear();
    390390                for (int c = 0; c < n; c++) {
    391                         row.append(tspmodel->index(r,c).data(Qt::UserRole).toReal(&ok));
     391                        row.append(tspmodel->index(r,c).data(Qt::UserRole).toDouble(&ok));
    392392                        if (!ok) {
    393393                                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.