예제 #1
0
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);
    }
}
예제 #2
0
파일: main.cpp 프로젝트: MeowBot/freequant
 virtual void onInit() {
     std::cout << __FUNCTION__ << std::endl;
     setRunningMode(FreeQuant::BaseStrategy::Simulation);
     setRunningLength(10);
 }