Commit a7df88d3 authored by finetjul's avatar finetjul
Browse files

ENH: Edit LastElapsedTime in qMRMLEventBrokerWidget

git-svn-id: http://svn.slicer.org/Slicer4/trunk@17060 3bd1e089-480b-0410-8dfb-8563597acbee
parent 29677793
......@@ -305,7 +305,7 @@ void qMRMLEventBrokerWidget::onItemChanged(QTreeWidgetItem* item, int column)
{
return;
}
if (column == TotalTimeColumn)
if (column == TotalTimeColumn || column == ElapsedTimeColumn)
{
QString newTotalTime = item->text(column);
if (newTotalTime.endsWith("s"))
......@@ -316,7 +316,14 @@ void qMRMLEventBrokerWidget::onItemChanged(QTreeWidgetItem* item, int column)
double newTotal = newTotalTime.toDouble(&ok);
if (ok)
{
observation->SetTotalElapsedTime(newTotal);
if ( column == TotalTimeColumn )
{
observation->SetTotalElapsedTime(newTotal);
}
else if (column == ElapsedTimeColumn )
{
observation->SetLastElapsedTime(newTotal);
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment