void VideoEditor::slotPreviewToggled(bool state) { if (state == true) { m_video->start(m_doc->masterTimer(), functionParent()); connect(m_video, SIGNAL(stopped(quint32)), this, SLOT(slotPreviewStopped(quint32))); } else m_video->stop(functionParent()); }
void AudioEditor::slotPreviewToggled(bool state) { if (state == true) { m_audio->start(m_doc->masterTimer()); connect(m_audio, SIGNAL(stopped(quint32)), this, SLOT(slotPreviewStopped(quint32))); } else m_audio->stop(); }