| 424 | } |
| 425 | |
| 426 | void 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 | |
| 437 | void ScrubberBase::stopAutoRepeat() { |
| 438 | autorepeat_direction_ = 0; |
nothing calls this directly
no test coverage detected