mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
CMS50I session select test 7
This commit is contained in:
parent
b95de3c947
commit
a15f9851e8
@ -53,6 +53,9 @@ CMS50F37Loader::CMS50F37Loader()
|
||||
|
||||
duration_divisor = 2;
|
||||
|
||||
model = QString();
|
||||
vendor = QString();
|
||||
|
||||
}
|
||||
|
||||
CMS50F37Loader::~CMS50F37Loader()
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user