ScopeManager::ScopeManager(MonitorManager *monitorManager) : m_monitorManager(monitorManager), m_lastConnectedRenderer(NULL) { m_signalMapper = new QSignalMapper(this); bool b = true; b &= connect(m_monitorManager, SIGNAL(checkColorScopes()), this, SLOT(slotUpdateActiveRenderer())); b &= connect(m_monitorManager, SIGNAL(clearScopes()), this, SLOT(slotClearColorScopes())); b &= connect(m_signalMapper, SIGNAL(mapped(QString)), this, SLOT(slotRequestFrame(QString))); Q_ASSERT(b); slotUpdateActiveRenderer(); }
ScopeManager::ScopeManager(QObject *parent) : QObject(parent), m_lastConnectedRenderer(NULL) { m_signalMapper = new QSignalMapper(this); connect(pCore->monitorManager(), SIGNAL(checkColorScopes()), SLOT(slotUpdateActiveRenderer())); connect(pCore->monitorManager(), SIGNAL(clearScopes()), SLOT(slotClearColorScopes())); connect(m_signalMapper, SIGNAL(mapped(QString)), SLOT(slotRequestFrame(QString))); slotUpdateActiveRenderer(); createScopes(); }