Skip to content
Snippets Groups Projects
Commit 760497e8 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

instancemanager: remove pollEvents

Change-Id: Ice84e71ecff31703c379dc34bdbfe09718928ea4
parent 78fbe5d6
No related branches found
No related tags found
No related merge requests found
...@@ -27,9 +27,7 @@ ...@@ -27,9 +27,7 @@
static int ringFlags = 0; static int ringFlags = 0;
void pollEvents(); InstanceManagerInterface::InstanceManagerInterface()
InstanceManagerInterface::InstanceManagerInterface() : m_pTimer(nullptr)
{ {
using namespace std::placeholders; using namespace std::placeholders;
...@@ -45,15 +43,6 @@ InstanceManagerInterface::InstanceManagerInterface() : m_pTimer(nullptr) ...@@ -45,15 +43,6 @@ InstanceManagerInterface::InstanceManagerInterface() : m_pTimer(nullptr)
using DRing::VideoSignal; using DRing::VideoSignal;
#endif #endif
m_pTimer = new QTimer(this);
m_pTimer->setInterval(50);
#ifdef Q_OS_WIN
connect(m_pTimer,SIGNAL(timeout()),this,SLOT(pollEvents()));
#else
connect(m_pTimer,&QTimer::timeout,this,&InstanceManagerInterface::pollEvents);
#endif
m_pTimer->start();
#ifndef MUTE_DRING #ifndef MUTE_DRING
ringFlags |= DRing::DRING_FLAG_DEBUG; ringFlags |= DRing::DRING_FLAG_DEBUG;
ringFlags |= DRing::DRING_FLAG_CONSOLE_LOG; ringFlags |= DRing::DRING_FLAG_CONSOLE_LOG;
...@@ -80,11 +69,6 @@ InstanceManagerInterface::~InstanceManagerInterface() ...@@ -80,11 +69,6 @@ InstanceManagerInterface::~InstanceManagerInterface()
} }
void InstanceManagerInterface::pollEvents()
{
DRing::pollEvents();
}
bool InstanceManagerInterface::isConnected() bool InstanceManagerInterface::isConnected()
{ {
return true; return true;
......
...@@ -58,11 +58,7 @@ public Q_SLOTS: // METHODS ...@@ -58,11 +58,7 @@ public Q_SLOTS: // METHODS
bool isConnected(); bool isConnected();
void pollEvents();
private: private:
QTimer* m_pTimer;
Q_SIGNALS: // SIGNALS Q_SIGNALS: // SIGNALS
void started(); void started();
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment