Gui: move to new style connect()

This commit is contained in:
wmayer
2023-02-01 11:58:00 +01:00
committed by wwmayer
parent 25a63f8750
commit 2e5cb03261
43 changed files with 237 additions and 246 deletions

View File

@@ -50,8 +50,8 @@ SensorManager::SensorManager()
this->mainthreadid = cc_thread_id();
this->signalthread = new SignalThread();
QObject::connect(this->signalthread, SIGNAL(triggerSignal()),
this, SLOT(sensorQueueChanged()));
QObject::connect(this->signalthread, &SignalThread::triggerSignal,
this, &SensorManager::sensorQueueChanged);
this->idletimer = new QTimer;
this->delaytimer = new QTimer;
@@ -61,9 +61,9 @@ SensorManager::SensorManager()
this->delaytimer->setSingleShot(true);
this->timerqueuetimer->setSingleShot(true);
this->connect(this->idletimer, SIGNAL(timeout(void)), this, SLOT(idleTimeout()));
this->connect(this->delaytimer, SIGNAL(timeout(void)), this, SLOT(delayTimeout()));
this->connect(this->timerqueuetimer, SIGNAL(timeout(void)), this, SLOT(timerQueueTimeout()));
this->connect(this->idletimer, &QTimer::timeout, this, &SensorManager::idleTimeout);
this->connect(this->delaytimer, &QTimer::timeout, this, &SensorManager::delayTimeout);
this->connect(this->timerqueuetimer, &QTimer::timeout, this, &SensorManager::timerQueueTimeout);
SoDB::getSensorManager()->setChangedCallback(SensorManager::sensorQueueChangedCB, this);
this->timerEpsilon = 1.0 / 5000.0;