From 6cd797cb189d4952230ab28586c4ca661d647e9d Mon Sep 17 00:00:00 2001 From: SeeLook <seelook@gmail.com> Date: Sat, 7 Nov 2020 10:00:34 +0100 Subject: [PATCH] Minor. Mute debug messages, fix indentation --- src/libs/core/score/tnoteitem.cpp | 11 ++++++----- src/main/texamexecutor.cpp | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/libs/core/score/tnoteitem.cpp b/src/libs/core/score/tnoteitem.cpp index ed32c6bd0..210d5604e 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 e2c566473..f835973b6 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); -- GitLab