MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / startAutoRepeat

Method startAutoRepeat

pj_widgets/src/ScrubberBase.cpp:426–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426void ScrubberBase::startAutoRepeat(int direction) {
427 autorepeat_direction_ = direction;
428 if (!autorepeat_timer_) {
429 autorepeat_timer_ = new QTimer(this);
430 autorepeat_timer_->setSingleShot(true);
431 connect(autorepeat_timer_, &QTimer::timeout, this, &ScrubberBase::onAutoRepeatTick);
432 }
433 autorepeat_timer_->setInterval(kAutorepeatDelayMs);
434 autorepeat_timer_->start();
435}
436
437void ScrubberBase::stopAutoRepeat() {
438 autorepeat_direction_ = 0;

Callers

nothing calls this directly

Calls 2

setIntervalMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected