CMS50I session select test 7

This commit is contained in:
Mark Watkins 2014-08-19 14:30:27 +10:00
parent b95de3c947
commit a15f9851e8
2 changed files with 8 additions and 1 deletions

View File

@ -53,6 +53,9 @@ CMS50F37Loader::CMS50F37Loader()
duration_divisor = 2;
model = QString();
vendor = QString();
}
CMS50F37Loader::~CMS50F37Loader()

View File

@ -222,6 +222,8 @@ void OximeterImport::on_directImportButton_clicked()
if (!oximodule)
return;
QString model = oximodule->getModel();
oximodule->resetDevice();
int session_count = oximodule->getSessionCount();
@ -236,6 +238,8 @@ void OximeterImport::on_directImportButton_clicked()
ui->tableOxiSessions->setRowCount(session_count);
ui->tableOxiSessions->setSelectionBehavior(QAbstractItemView::SelectRows);
ui->tableOxiSessions->setColumnWidth(0,150);
int h, m, s;
for (int i=0; i< session_count; ++i) {
@ -254,7 +258,7 @@ void OximeterImport::on_directImportButton_clicked()
ui->tableOxiSessions->setItem(i, 1, item);
item->setFlags(item->flags() & ~Qt::ItemIsEditable);
item = new QTableWidgetItem(tr("%1 Session #%2").arg(oximodule->getModel()).arg(i+1, 0));
item = new QTableWidgetItem(tr("%1 Session %2 (%3s)").arg(model).arg(i+1, 0).arg(duration));
ui->tableOxiSessions->setItem(i, 2, item);
item->setFlags(item->flags() & ~Qt::ItemIsEditable);
}