void MainBottomWidget::initConnect() { connect(m_playButton, SIGNAL(clicked()), this, SLOT(on_playButton_clicked())); connect(m_playFrontButton, SIGNAL(clicked()), this, SIGNAL(playFront())); connect(m_playNextButton, SIGNAL(clicked()), this, SIGNAL(playNext())); // 进度条 connect(m_voiceWidget, SIGNAL(changeTo(qreal)), this, SLOT(voiceChanged(qreal))); connect(m_postionWidget, SIGNAL(changeTo(qreal)), this, SLOT(postionChanged(qreal))); }
void AbstractSynthesizer::setVoice (const SynthesizedVoice &p_voice) { m_voice = p_voice; emit voiceChanged (); emit voiceChanged (m_voice); }