Additional changes needed after rebasing

This commit is contained in:
IsaacWeiss 2020-11-21 22:23:07 -05:00
parent 129daede16
commit 0777643978
4 changed files with 14 additions and 15 deletions

View file

@ -249,8 +249,8 @@ void Measure::setScore(Score* score)
MStaff* Measure::mstaff(int staffIndex) const MStaff* Measure::mstaff(int staffIndex) const
{ {
if (staffIndex >= 0 && staffIndex < static_cast<int>(_mstaves.size())) { if (staffIndex >= 0 && staffIndex < static_cast<int>(m_mstaves.size())) {
return _mstaves[staffIndex]; return m_mstaves[staffIndex];
} }
return nullptr; return nullptr;

View file

@ -153,15 +153,14 @@ public:
System* system() const { return toSystem(parent()); } System* system() const { return toSystem(parent()); }
bool hasVoices(int staffIdx, Fraction stick, Fraction len) const; bool hasVoices(int staffIdx, Fraction stick, Fraction len) const;
bool hasVoices(int staffIdx) const { return m_mstaves[staffIdx]->hasVoices(); } bool hasVoices(int staffIdx) const;
void setHasVoices(int staffIdx, bool v) { return m_mstaves[staffIdx]->setHasVoices(v); } void setHasVoices(int staffIdx, bool v);
StaffLines* staffLines(int staffIdx) { return m_mstaves[staffIdx]->lines(); } StaffLines* staffLines(int staffIdx);
Spacer* vspacerDown(int staffIdx) const;
Spacer* vspacerDown(int staffIdx) const { return m_mstaves[staffIdx]->vspacerDown(); } Spacer* vspacerUp(int staffIdx) const;
Spacer* vspacerUp(int staffIdx) const { return m_mstaves[staffIdx]->vspacerUp(); } void setStaffVisible(int staffIdx, bool visible);
void setStaffVisible(int staffIdx, bool visible) { m_mstaves[staffIdx]->setVisible(visible); } void setStaffStemless(int staffIdx, bool stemless);
void setStaffStemless(int staffIdx, bool stemless) { m_mstaves[staffIdx]->setStemless(stemless); }
#ifndef NDEBUG #ifndef NDEBUG
bool corrupted(int staffIdx) const { return m_mstaves[staffIdx]->corrupted(); } bool corrupted(int staffIdx) const { return m_mstaves[staffIdx]->corrupted(); }
void setCorrupted(int staffIdx, bool val) { m_mstaves[staffIdx]->setCorrupted(val); } void setCorrupted(int staffIdx, bool val) { m_mstaves[staffIdx]->setCorrupted(val); }

View file

@ -799,7 +799,7 @@ bool NotationInteraction::isDropAccepted(const QPointF& pos, Qt::KeyboardModifie
case ElementType::INSTRUMENT_CHANGE: case ElementType::INSTRUMENT_CHANGE:
case ElementType::REHEARSAL_MARK: case ElementType::REHEARSAL_MARK:
case ElementType::JUMP: case ElementType::JUMP:
case ElementType::REPEAT_MEASURE: case ElementType::MEASURE_REPEAT:
case ElementType::ICON: case ElementType::ICON:
case ElementType::CHORD: case ElementType::CHORD:
case ElementType::SPACER: case ElementType::SPACER:
@ -951,7 +951,7 @@ bool NotationInteraction::drop(const QPointF& pos, Qt::KeyboardModifiers modifie
case ElementType::INSTRUMENT_CHANGE: case ElementType::INSTRUMENT_CHANGE:
case ElementType::REHEARSAL_MARK: case ElementType::REHEARSAL_MARK:
case ElementType::JUMP: case ElementType::JUMP:
case ElementType::REPEAT_MEASURE: case ElementType::MEASURE_REPEAT:
case ElementType::ICON: case ElementType::ICON:
case ElementType::NOTE: case ElementType::NOTE:
case ElementType::CHORD: case ElementType::CHORD:

View file

@ -21,7 +21,7 @@
#include "libmscore/measure.h" #include "libmscore/measure.h"
#include "libmscore/sig.h" #include "libmscore/sig.h"
#include "libmscore/score.h" #include "libmscore/score.h"
#include "libmscore/repeat.h" #include "libmscore/measurerepeat.h"
#include "libmscore/undo.h" #include "libmscore/undo.h"
#include "libmscore/range.h" #include "libmscore/range.h"
#include "notation/inotationelements.h" #include "notation/inotationelements.h"