Mercurial > hg > svcore
diff data/model/WritableWaveFileModel.cpp @ 1770:dffc70996f54
Correct some erroneous signal signatures
author | Chris Cannam |
---|---|
date | Fri, 19 Jul 2019 16:10:00 +0100 |
parents | 6d09d68165a4 |
children |
line wrap: on
line diff
--- a/data/model/WritableWaveFileModel.cpp Thu Jul 18 14:42:24 2019 +0100 +++ b/data/model/WritableWaveFileModel.cpp Fri Jul 19 16:10:00 2019 +0100 @@ -158,9 +158,10 @@ } m_model->setStartFrame(m_startFrame); - connect(m_model, SIGNAL(modelChanged()), this, SIGNAL(modelChanged())); - connect(m_model, SIGNAL(modelChangedWithin(sv_frame_t, sv_frame_t)), - this, SIGNAL(modelChangedWithin(sv_frame_t, sv_frame_t))); + connect(m_model, SIGNAL(modelChanged(ModelId)), + this, SLOT(componentModelChanged(ModelId))); + connect(m_model, SIGNAL(modelChangedWithin(ModelId, sv_frame_t, sv_frame_t)), + this, SLOT(componentModelChangedWithin(ModelId, sv_frame_t, sv_frame_t))); PlayParameterRepository::getInstance()->addPlayable (getId().untyped, this); @@ -178,6 +179,18 @@ } void +WritableWaveFileModel::componentModelChanged(ModelId) +{ + emit modelChanged(getId()); +} + +void +WritableWaveFileModel::componentModelChangedWithin(ModelId, sv_frame_t f0, sv_frame_t f1) +{ + emit modelChangedWithin(getId(), f0, f1); +} + +void WritableWaveFileModel::setStartFrame(sv_frame_t startFrame) { m_startFrame = startFrame;