comparison framework/SVFileReader.cpp @ 648:eec0c50bb44f single-point

Update following RegionModel API change
author Chris Cannam
date Fri, 15 Mar 2019 14:24:46 +0000
parents 3168deb50199
children 284cb118368e
comparison
equal deleted inserted replaced
647:25554f7a5b0d 648:eec0c50bb44f
1127 float value = 0.0; 1127 float value = 0.0;
1128 value = attributes.value("value").trimmed().toFloat(&ok); 1128 value = attributes.value("value").trimmed().toFloat(&ok);
1129 int duration = 0; 1129 int duration = 0;
1130 duration = attributes.value("duration").trimmed().toInt(&ok); 1130 duration = attributes.value("duration").trimmed().toInt(&ok);
1131 QString label = attributes.value("label"); 1131 QString label = attributes.value("label");
1132 rm->addPoint(RegionModel::Point(frame, value, duration, label)); 1132 rm->add(Event(frame, value, duration, label));
1133 return ok; 1133 return ok;
1134 } 1134 }
1135 1135
1136 TextModel *tm = dynamic_cast<TextModel *>(m_currentDataset); 1136 TextModel *tm = dynamic_cast<TextModel *>(m_currentDataset);
1137 1137