comparison 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
comparison
equal deleted inserted replaced
1769:9a8327e7b2dc 1770:dffc70996f54
156 m_model = nullptr; 156 m_model = nullptr;
157 return; 157 return;
158 } 158 }
159 m_model->setStartFrame(m_startFrame); 159 m_model->setStartFrame(m_startFrame);
160 160
161 connect(m_model, SIGNAL(modelChanged()), this, SIGNAL(modelChanged())); 161 connect(m_model, SIGNAL(modelChanged(ModelId)),
162 connect(m_model, SIGNAL(modelChangedWithin(sv_frame_t, sv_frame_t)), 162 this, SLOT(componentModelChanged(ModelId)));
163 this, SIGNAL(modelChangedWithin(sv_frame_t, sv_frame_t))); 163 connect(m_model, SIGNAL(modelChangedWithin(ModelId, sv_frame_t, sv_frame_t)),
164 this, SLOT(componentModelChangedWithin(ModelId, sv_frame_t, sv_frame_t)));
164 165
165 PlayParameterRepository::getInstance()->addPlayable 166 PlayParameterRepository::getInstance()->addPlayable
166 (getId().untyped, this); 167 (getId().untyped, this);
167 } 168 }
168 169
173 174
174 delete m_model; 175 delete m_model;
175 delete m_targetWriter; 176 delete m_targetWriter;
176 delete m_temporaryWriter; 177 delete m_temporaryWriter;
177 delete m_reader; 178 delete m_reader;
179 }
180
181 void
182 WritableWaveFileModel::componentModelChanged(ModelId)
183 {
184 emit modelChanged(getId());
185 }
186
187 void
188 WritableWaveFileModel::componentModelChangedWithin(ModelId, sv_frame_t f0, sv_frame_t f1)
189 {
190 emit modelChangedWithin(getId(), f0, f1);
178 } 191 }
179 192
180 void 193 void
181 WritableWaveFileModel::setStartFrame(sv_frame_t startFrame) 194 WritableWaveFileModel::setStartFrame(sv_frame_t startFrame)
182 { 195 {