Sensoractor: Set delay timer single shot
This commit is contained in:
parent
8e33897d29
commit
32dd6bc2fe
1 changed files with 2 additions and 0 deletions
|
|
@ -5,11 +5,13 @@
|
||||||
SensorActor::SensorActor(const Sensor sensor, QObject* parent): Actor(parent), sensor_(sensor)
|
SensorActor::SensorActor(const Sensor sensor, QObject* parent): Actor(parent), sensor_(sensor)
|
||||||
{
|
{
|
||||||
connect(&timer_, &QTimer::timeout, this, &SensorActor::delayTimeout);
|
connect(&timer_, &QTimer::timeout, this, &SensorActor::delayTimeout);
|
||||||
|
timer_.setSingleShot(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
SensorActor::SensorActor(QObject* parent): Actor(parent)
|
SensorActor::SensorActor(QObject* parent): Actor(parent)
|
||||||
{
|
{
|
||||||
connect(&timer_, &QTimer::timeout, this, &SensorActor::delayTimeout);
|
connect(&timer_, &QTimer::timeout, this, &SensorActor::delayTimeout);
|
||||||
|
timer_.setSingleShot(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SensorActor::setSensor(const Sensor sensor)
|
void SensorActor::setSensor(const Sensor sensor)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue