Skip to content

Commit

Permalink
Merge pull request #2858 from lasconic/fix-127556
Browse files Browse the repository at this point in the history
fix #127556: remove _repeatMeasure property from MeasureBase
  • Loading branch information
lasconic committed Oct 7, 2016
2 parents 065e71c + 66dc473 commit b889178
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion libmscore/excerpt.cpp
Expand Up @@ -429,7 +429,6 @@ void cloneStaves(Score* oscore, Score* score, const QList<int>& map, QMultiMap<i
nm->setRepeatCount(m->repeatCount());
nm->setRepeatStart(m->repeatStart());
nm->setRepeatEnd(m->repeatEnd());
nm->setRepeatMeasure(m->repeatMeasure());
nm->setRepeatJump(m->repeatJump());

nm->setIrregular(m->irregular());
Expand Down
7 changes: 0 additions & 7 deletions libmscore/measurebase.cpp
Expand Up @@ -47,7 +47,6 @@ MeasureBase::MeasureBase(const MeasureBase& m)
_irregular = m._irregular;
_repeatEnd = m._repeatEnd;
_repeatStart = m._repeatStart;
_repeatMeasure = m._repeatMeasure;
_repeatJump = m._repeatJump;

for (Element* e : m._el)
Expand Down Expand Up @@ -315,8 +314,6 @@ QVariant MeasureBase::getProperty(P_ID id) const
return repeatEnd();
case P_ID::REPEAT_START:
return repeatStart();
case P_ID::REPEAT_MEASURE:
return repeatMeasure();
case P_ID::REPEAT_JUMP:
return repeatJump();
default:
Expand All @@ -337,9 +334,6 @@ bool MeasureBase::setProperty(P_ID id, const QVariant& value)
case P_ID::REPEAT_START:
setRepeatStart(value.toBool());
break;
case P_ID::REPEAT_MEASURE:
setRepeatMeasure(value.toBool());
break;
case P_ID::REPEAT_JUMP:
setRepeatJump(value.toBool());
break;
Expand All @@ -361,7 +355,6 @@ QVariant MeasureBase::propertyDefault(P_ID propertyId) const
switch (propertyId) {
case P_ID::REPEAT_END:
case P_ID::REPEAT_START:
case P_ID::REPEAT_MEASURE:
case P_ID::REPEAT_JUMP:
return false;
default:
Expand Down
3 changes: 0 additions & 3 deletions libmscore/measurebase.h
Expand Up @@ -83,7 +83,6 @@ class MeasureBase : public Element {

bool _repeatEnd { false };
bool _repeatStart { false };
bool _repeatMeasure { false };
bool _repeatJump { false };
bool _irregular { true }; ///< Irregular measure, do not count
bool _lineBreak { false }; ///< Forced line break
Expand Down Expand Up @@ -168,12 +167,10 @@ class MeasureBase : public Element {

bool repeatEnd() const { return _repeatEnd; }
bool repeatStart() const { return _repeatStart; }
bool repeatMeasure() const { return _repeatMeasure; }
bool repeatJump() const { return _repeatJump; }

void setRepeatEnd(bool v) { _repeatEnd = v; }
void setRepeatStart(bool v) { _repeatStart = v; }
void setRepeatMeasure(bool v) { _repeatMeasure = v; }
void setRepeatJump(bool v) { _repeatJump = v; }


Expand Down
1 change: 0 additions & 1 deletion libmscore/property.cpp
Expand Up @@ -158,7 +158,6 @@ static const PropertyData propertyList[] = {

{ P_ID::REPEAT_END, true, 0, P_TYPE::BOOL },
{ P_ID::REPEAT_START, true, 0, P_TYPE::BOOL },
{ P_ID::REPEAT_MEASURE, true, 0, P_TYPE::BOOL },
{ P_ID::REPEAT_JUMP, true, 0, P_TYPE::BOOL },

{ P_ID::MEASURE_NUMBER_MODE, false, "measureNumberMode", P_TYPE::INT },
Expand Down
1 change: 0 additions & 1 deletion libmscore/property.h
Expand Up @@ -150,7 +150,6 @@ enum class P_ID : int {

REPEAT_END,
REPEAT_START,
REPEAT_MEASURE,
REPEAT_JUMP,

MEASURE_NUMBER_MODE,
Expand Down
2 changes: 0 additions & 2 deletions libmscore/segment.cpp
Expand Up @@ -440,7 +440,6 @@ void Segment::add(Element* el)

switch (el->type()) {
case Element::Type::REPEAT_MEASURE:
measure()->setRepeatMeasure(true);
_elist[track] = el;
_empty = false;
break;
Expand Down Expand Up @@ -583,7 +582,6 @@ void Segment::remove(Element* el)
break;

case Element::Type::REPEAT_MEASURE:
measure()->setRepeatMeasure(false);
_elist[track] = 0;
break;

Expand Down

0 comments on commit b889178

Please sign in to comment.