void ApiTraceModel::setApiTrace(ApiTrace *trace) { if (m_trace == trace) return; if (m_trace) disconnect(m_trace); m_trace = trace; connect(m_trace, SIGNAL(invalidated()), this, SLOT(invalidateFrames())); connect(m_trace, SIGNAL(framesInvalidated()), this, SLOT(invalidateFrames())); connect(m_trace, SIGNAL(framesAdded(int, int)), this, SLOT(appendFrames(int, int))); }
void ApiTraceModel::setApiTrace(ApiTrace *trace) { if (m_trace == trace) return; if (m_trace) disconnect(m_trace); m_trace = trace; connect(m_trace, SIGNAL(invalidated()), this, SLOT(invalidateFrames())); connect(m_trace, SIGNAL(framesInvalidated()), this, SLOT(invalidateFrames())); connect(m_trace, SIGNAL(beginAddingFrames(int, int)), this, SLOT(beginAddingFrames(int, int))); connect(m_trace, SIGNAL(endAddingFrames()), this, SLOT(endAddingFrames())); connect(m_trace, SIGNAL(changed(ApiTraceCall*)), this, SLOT(callChanged(ApiTraceCall*))); }