Commit 35389930 authored by T.J. Corona's avatar T.J. Corona

qpAnimationTimeWidget: change max timestep display.

This commit is in reference to Issue # 15917. Originally, the max timestep
display read "of ##", where ## was the total number of timesteps. So, for
a simulation with 2 timesteps, there would be "0 of 2" and "1 of 2". Now,
the display will read "0 max is 1" and "1 max is 1".
parent f4161fec
Pipeline #18682 passed with stage
......@@ -207,7 +207,8 @@ void pqAnimationTimeWidget::setTimeStepCount(int value)
Ui::AnimationTimeWidget &ui = this->Internals->Ui;
ui.timestepValue->setMaximum(value > 0? value -1 : 0);
ui.timestepCountLabel->setText(QString("of %1").arg(value));
ui.timestepCountLabel->setText(QString("(max is %1)")
.arg(value > 0? value -1 : 0));
ui.timestepCountLabel->setVisible(
(value > 0) && (this->playMode() == "Snap To TimeSteps"));
......
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