fix sequencer stop handling

This commit is contained in:
Werner Schweer 2017-06-24 10:40:04 +02:00
parent 46d0949bc4
commit 0cb1d2dfc0
4 changed files with 13 additions and 8 deletions

View file

@ -77,17 +77,10 @@ class HairpinSegment : public TextLineBaseSegment {
class Hairpin : public TextLineBase {
Q_GADGET
Q_ENUMS(Type)
Q_ENUMS(Ms::Dynamic::Range)
private:
Q_PROPERTY(Ms::Dynamic::Range dynRange READ dynRange WRITE undoSetDynRange)
Q_PROPERTY(Ms::HairpinType hairpinType READ hairpinType WRITE undoSetHairpinType)
Q_PROPERTY(int veloChange READ veloChange WRITE undoSetVeloChange)
bool _hairpinCircledTip;
HairpinType _hairpinType;
int _veloChange;
bool _hairpinCircledTip;
Dynamic::Range _dynRange;
PropertyFlags lineWidthStyle;

View file

@ -702,6 +702,15 @@ static const char* stateName(ViewState s)
return p;
}
//---------------------------------------------------------
// seqStopped
//---------------------------------------------------------
void ScoreView::seqStopped()
{
changeState(ViewState::NORMAL);
}
//---------------------------------------------------------
// changeState
//---------------------------------------------------------

View file

@ -182,6 +182,8 @@ ScoreView::ScoreView(QWidget* parent)
}
connect(getAction("loop"), SIGNAL(toggled(bool)), SLOT(loopToggled(bool)));
if (seq)
connect(seq, SIGNAL(stopped()), SLOT(seqStopped()));
}
//---------------------------------------------------------

View file

@ -260,6 +260,7 @@ class ScoreView : public QWidget, public MuseScoreView {
void triggerCmdRealtimeAdvance();
void cmdRealtimeAdvance();
void extendCurrentNote();
void seqStopped();
public slots:
void setViewRect(const QRectF&);