comparison layer/TimeValueLayer.cpp @ 320:984c1975f1ff

* Some tidying up to handling of alignment; add alignment status label to pane; ensure alignment when dragging with mouse as well as when playing
author Chris Cannam
date Thu, 25 Oct 2007 14:32:23 +0000
parents c0b9eec70639
children 4f4f38a11cd2
comparison
equal deleted inserted replaced
319:2a50c1ecc990 320:984c1975f1ff
57 TimeValueLayer::setModel(SparseTimeValueModel *model) 57 TimeValueLayer::setModel(SparseTimeValueModel *model)
58 { 58 {
59 if (m_model == model) return; 59 if (m_model == model) return;
60 m_model = model; 60 m_model = model;
61 61
62 connect(m_model, SIGNAL(modelChanged()), this, SIGNAL(modelChanged())); 62 connectSignals(m_model);
63 connect(m_model, SIGNAL(modelChanged(size_t, size_t)),
64 this, SIGNAL(modelChanged(size_t, size_t)));
65
66 connect(m_model, SIGNAL(completionChanged()),
67 this, SIGNAL(modelCompletionChanged()));
68 63
69 // std::cerr << "TimeValueLayer::setModel(" << model << ")" << std::endl; 64 // std::cerr << "TimeValueLayer::setModel(" << model << ")" << std::endl;
70 65
71 emit modelReplaced(); 66 emit modelReplaced();
72 } 67 }