void ReadMode::audioStopped() { m_readSpot.select(QTextCursor::WordUnderCursor); m_readSpot.insertHtml(m_currentText); m_currentText = ""; m_readSpot.movePosition(QTextCursor::NextWord); if (!m_readSpot.atEnd()) { QTimer::singleShot(int(m_morse->spaceSecs() * 1000.0), this, SLOT(readWordUnderCursor())); } else { qDebug() << "audio stopped method"; setRunningMode(PAUSED); } }
virtual void onInit() { std::cout << __FUNCTION__ << std::endl; setRunningMode(FreeQuant::BaseStrategy::Simulation); setRunningLength(10); }