refactor: Modernize Qt connections (#914)

This commit is contained in:
Murat Seker
2020-08-02 22:32:00 +02:00
committed by GitHub
parent d1a2b77ce3
commit 031b9a6b7c
22 changed files with 86 additions and 77 deletions

View File

@@ -39,7 +39,6 @@
// Boblight
#include <boblightserver/BoblightServer.h>
Hyperion::Hyperion(const quint8& instance)
: QObject()
, _instIndex(instance)
@@ -61,7 +60,7 @@ Hyperion::Hyperion(const quint8& instance)
Hyperion::~Hyperion()
{
freeObjects(false);
freeObjects();
}
void Hyperion::start()
@@ -152,16 +151,11 @@ void Hyperion::stop()
thread()->wait();
}
void Hyperion::freeObjects(bool emitCloseSignal)
void Hyperion::freeObjects()
{
// switch off all leds
clear(-1,true);
if (emitCloseSignal)
{
emit closing();
}
// delete components on exit of hyperion core
delete _boblightServer;
delete _captureCont;