diff --git a/src/libs/core/score/tnoteitem.cpp b/src/libs/core/score/tnoteitem.cpp index ed32c6bd04e9c49e6238357ed34dcc8ea6d56786..210d5604ef1fa01c38b93a27ac6744d128056f15 100644 --- a/src/libs/core/score/tnoteitem.cpp +++ b/src/libs/core/score/tnoteitem.cpp @@ -236,8 +236,8 @@ void TnoteItem::setNote(const Tnote& n) { updateStem = true; } -if (updateStem) - checkStem(); + if (updateStem) + checkStem(); updateAlter(); updateWidth(); @@ -422,9 +422,10 @@ void TnoteItem::setNoteNameVisible(bool nameVisible) { */ QString TnoteItem::getHeadText(const Trhythm& r) { if (r.rhythm() == Trhythm::NoRhythm) - return QStringLiteral("\uf4be"); // just black note-head - if (r.isRest()) - return QString(QChar(0xe4e2 + static_cast<int>(r.rhythm()))); + return QStringLiteral("\uf4be"); // just black note-head + + if (r.isRest()) + return QString(QChar(0xe4e2 + static_cast<int>(r.rhythm()))); else { if (r.rhythm() == Trhythm::Whole) return QStringLiteral("\uf468"); diff --git a/src/main/texamexecutor.cpp b/src/main/texamexecutor.cpp index e2c56647332b11f9522027262cff2f4428c71256..f835973b613bc90fa93e1a468ff13716ce080df1 100644 --- a/src/main/texamexecutor.cpp +++ b/src/main/texamexecutor.cpp @@ -319,7 +319,7 @@ void TexamExecutor::askQuestion(bool isAttempt) { disconnect(MAIN_SCORE, &TmainScoreObject::readOnlyNoteClicked, this, &TexamExecutor::correctNoteOfMelody); int melodyLength = qBound(qMax(2, qRound(m_level.melodyLen * 0.7)), //at least 70% of length but not less than 2 qRound(((6.0 + (qrand() % 5)) / 10.0) * (qreal)m_level.melodyLen), (int)m_level.melodyLen); - qDebug() << "========== Asking melody" << m_exam->count(); +// qDebug() << "========== Asking melody" << m_exam->count(); if (m_penalty->isNot()) { TrhythmList rhythms; if (!m_level.isMelodySet()) { @@ -346,7 +346,7 @@ void TexamExecutor::askQuestion(bool isAttempt) { // Set the next melody ID: // It may be the same ID when repetition number is not fulfilled // or the next melody when repeated enough or this is exercise - qDebug() << "[MELODY SET] ID" << m_melody->lastMelodyId() << "repeat" << m_melody->repeatCounter() << "of" << m_level.repeatNrInSet; +// qDebug() << "[MELODY SET] ID" << m_melody->lastMelodyId() << "repeat" << m_melody->repeatCounter() << "of" << m_level.repeatNrInSet; m_melody->nextRepeat(); if (m_exercise || m_melody->repeatCounter() > m_level.repeatNrInSet) { m_melody->setRepeat(1);