comparison data/model/SparseTimeValueModel.h @ 1658:5b7b01da430a single-point

Start updating SparseOneDimensionalModel
author Chris Cannam
date Wed, 20 Mar 2019 16:22:13 +0000
parents e4084bc60fe8
children 8bf3a52a1604
comparison
equal deleted inserted replaced
1657:31b46a5647db 1658:5b7b01da430a
169 */ 169 */
170 void add(Event e) override { 170 void add(Event e) override {
171 171
172 bool allChange = false; 172 bool allChange = false;
173 173
174 { 174 { QMutexLocker locker(&m_mutex);
175 QMutexLocker locker(&m_mutex);
176 m_events.add(e.withoutDuration()); // can't have duration here 175 m_events.add(e.withoutDuration()); // can't have duration here
177 176
178 if (e.getLabel() != "") { 177 if (e.getLabel() != "") {
179 m_haveTextLabels = true; 178 m_haveTextLabels = true;
180 } 179 }