comparison layer/NoteLayer.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 2f83b6e3b8ca 64e84e5efb76
comparison
equal deleted inserted replaced
319:2a50c1ecc990 320:984c1975f1ff
53 NoteLayer::setModel(NoteModel *model) 53 NoteLayer::setModel(NoteModel *model)
54 { 54 {
55 if (m_model == model) return; 55 if (m_model == model) return;
56 m_model = model; 56 m_model = model;
57 57
58 connect(m_model, SIGNAL(modelChanged()), this, SIGNAL(modelChanged())); 58 connectSignals(m_model);
59 connect(m_model, SIGNAL(modelChanged(size_t, size_t)),
60 this, SIGNAL(modelChanged(size_t, size_t)));
61
62 connect(m_model, SIGNAL(completionChanged()),
63 this, SIGNAL(modelCompletionChanged()));
64 59
65 // std::cerr << "NoteLayer::setModel(" << model << ")" << std::endl; 60 // std::cerr << "NoteLayer::setModel(" << model << ")" << std::endl;
66 61
67 emit modelReplaced(); 62 emit modelReplaced();
68 } 63 }