Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 2298:f78177863e26 by-id
Experiment updating AggregateWaveModel. This builds, but can't align anything.
author | Chris Cannam |
---|---|
date | Fri, 21 Jun 2019 14:36:03 +0100 |
parents | e9c77a4c865e |
children | eb7f4579e5cc |
comparison
equal
deleted
inserted
replaced
2297:42a6126c800d | 2298:f78177863e26 |
---|---|
4100 AggregateWaveModel::ChannelSpecList sl; | 4100 AggregateWaveModel::ChannelSpecList sl; |
4101 foreach (Model *m, candidateInputModels) { | 4101 foreach (Model *m, candidateInputModels) { |
4102 RangeSummarisableTimeValueModel *r = | 4102 RangeSummarisableTimeValueModel *r = |
4103 qobject_cast<RangeSummarisableTimeValueModel *>(m); | 4103 qobject_cast<RangeSummarisableTimeValueModel *>(m); |
4104 if (r) { | 4104 if (r) { |
4105 sl.push_back(AggregateWaveModel::ModelChannelSpec(r, -1)); | 4105 sl.push_back(AggregateWaveModel::ModelChannelSpec(r->getId(), -1)); |
4106 } | 4106 } |
4107 } | 4107 } |
4108 if (!sl.empty()) { | 4108 if (!sl.empty()) { |
4109 aggregate = new AggregateWaveModel(sl); | 4109 aggregate = new AggregateWaveModel(sl); |
4110 aggregate->setObjectName(tr("Multiplex all of the above")); | 4110 aggregate->setObjectName(tr("Multiplex all of the above")); |