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
Branches
No related tags found
No related merge requests found
......@@ -27,9 +27,7 @@
static int ringFlags = 0;
void pollEvents();
InstanceManagerInterface::InstanceManagerInterface() : m_pTimer(nullptr)
InstanceManagerInterface::InstanceManagerInterface()
{
using namespace std::placeholders;
......@@ -45,15 +43,6 @@ InstanceManagerInterface::InstanceManagerInterface() : m_pTimer(nullptr)
using DRing::VideoSignal;
#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
ringFlags |= DRing::DRING_FLAG_DEBUG;
ringFlags |= DRing::DRING_FLAG_CONSOLE_LOG;
......@@ -80,11 +69,6 @@ InstanceManagerInterface::~InstanceManagerInterface()
}
void InstanceManagerInterface::pollEvents()
{
DRing::pollEvents();
}
bool InstanceManagerInterface::isConnected()
{
return true;
......
......@@ -58,11 +58,7 @@ public Q_SLOTS: // METHODS
bool isConnected();
void pollEvents();
private:
QTimer* m_pTimer;
Q_SIGNALS: // SIGNALS
void started();
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment