prefer QTimer api for readability
This commit is contained in:
parent
37010fa8d4
commit
4241cd0c38
|
@ -21,8 +21,7 @@ QSacnUniverse::QSacnUniverse(QObject *parent, std::shared_ptr<sACN::Universe> un
|
|||
|
||||
// set the status watchdog to update the status if the universe
|
||||
// isn't showing frequent activity
|
||||
connect(status_watchdog_, &QTimer::timeout,
|
||||
this, [this](){universe_->status();});
|
||||
status_watchdog_->callOnTimeout([this](){universe_->status();});
|
||||
status_watchdog_->setInterval(DMX::E111_DATA_LOSS_TIMEOUT);
|
||||
status_watchdog_->start();
|
||||
connect(this, &QSacnUniverse::dataChanged,
|
||||
|
|
Loading…
Reference in New Issue