Sensoractor: Set delay timer single shot

This commit is contained in:
Carl Philipp Klemm 2026-06-25 08:55:17 +02:00
parent 8e33897d29
commit 32dd6bc2fe

View file

@ -5,11 +5,13 @@
SensorActor::SensorActor(const Sensor sensor, QObject* parent): Actor(parent), sensor_(sensor)
{
connect(&timer_, &QTimer::timeout, this, &SensorActor::delayTimeout);
timer_.setSingleShot(true);
}
SensorActor::SensorActor(QObject* parent): Actor(parent)
{
connect(&timer_, &QTimer::timeout, this, &SensorActor::delayTimeout);
timer_.setSingleShot(true);
}
void SensorActor::setSensor(const Sensor sensor)