Commit 5e465684 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot

Merge topic 'cleanup-time-spinbox'

57d6d29a Fix odd spinbox behavior (fixes #18204).
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Cory Quammen's avatarCory Quammen <cory.quammen@kitware.com>
Merge-request: !2585
parents bd787e51 57d6d29a
Pipeline #109520 passed with stage
in 0 seconds
......@@ -34,6 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "pqPropertyLinks.h"
#include "pqPropertyLinksConnection.h"
#include "pqTimer.h"
#include "vtkSMPropertyHelper.h"
#include "vtkSMTimeKeeperProxy.h"
#include "vtkWeakPointer.h"
......@@ -107,8 +108,15 @@ pqAnimationTimeWidget::pqAnimationTimeWidget(QWidget* parentObject)
ui.timeValueComboBox, SIGNAL(currentTextChanged(QString)), SLOT(timeComboBoxChanged()));
ui.timeValueComboBox->setVisible(false);
this->connect(ui.radioButtonValue, SIGNAL(toggled(bool)), SLOT(timeRadioButtonToggled()));
this->connect(
ui.timestepValue, SIGNAL(valueChangedAndEditingFinished()), SLOT(timeSpinBoxChanged()));
// the idiosyncrasies of QSpinBox make it so that we have to delay when we
// respond to the "go-to-next" event (see paraview/paraview#18204).
auto timer = new pqTimer(this);
timer->setInterval(100);
timer->setSingleShot(true);
this->connect(timer, SIGNAL(timeout()), SLOT(timeSpinBoxChanged()));
QObject::connect(
ui.timestepValue, SIGNAL(valueChangedAndEditingFinished()), timer, SLOT(start()));
}
//-----------------------------------------------------------------------------
......
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