comparison data/model/SparseOneDimensionalModel.h @ 1751:77543124651b by-id

Overhaul PlayParameters bits
author Chris Cannam
date Thu, 04 Jul 2019 18:04:21 +0100
parents 52705a328b34
children 6d09d68165a4
comparison
equal deleted inserted replaced
1750:d0ef65d8dd89 1751:77543124651b
51 m_notifier(this, 51 m_notifier(this,
52 notifyOnAdd ? 52 notifyOnAdd ?
53 DeferredNotifier::NOTIFY_ALWAYS : 53 DeferredNotifier::NOTIFY_ALWAYS :
54 DeferredNotifier::NOTIFY_DEFERRED), 54 DeferredNotifier::NOTIFY_DEFERRED),
55 m_completion(100) { 55 m_completion(100) {
56 PlayParameterRepository::getInstance()->addPlayable(getId().untyped); 56 PlayParameterRepository::getInstance()->addPlayable
57 (getId().untyped, this);
57 } 58 }
58 59
59 virtual ~SparseOneDimensionalModel() { 60 virtual ~SparseOneDimensionalModel() {
60 PlayParameterRepository::getInstance()->removePlayable(getId().untyped); 61 PlayParameterRepository::getInstance()->removePlayable
62 (getId().untyped);
61 } 63 }
62 64
63 QString getTypeName() const override { return tr("Sparse 1-D"); } 65 QString getTypeName() const override { return tr("Sparse 1-D"); }
64 bool isSparse() const override { return true; } 66 bool isSparse() const override { return true; }
65 bool isOK() const override { return true; } 67 bool isOK() const override { return true; }