Mercurial > hg > svgui
comparison layer/TimeInstantLayer.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 |
---|---|
51 TimeInstantLayer::setModel(SparseOneDimensionalModel *model) | 51 TimeInstantLayer::setModel(SparseOneDimensionalModel *model) |
52 { | 52 { |
53 if (m_model == model) return; | 53 if (m_model == model) return; |
54 m_model = model; | 54 m_model = model; |
55 | 55 |
56 connect(m_model, SIGNAL(modelChanged()), this, SIGNAL(modelChanged())); | 56 connectSignals(m_model); |
57 connect(m_model, SIGNAL(modelChanged(size_t, size_t)), | |
58 this, SIGNAL(modelChanged(size_t, size_t))); | |
59 | |
60 connect(m_model, SIGNAL(completionChanged()), | |
61 this, SIGNAL(modelCompletionChanged())); | |
62 | 57 |
63 std::cerr << "TimeInstantLayer::setModel(" << model << ")" << std::endl; | 58 std::cerr << "TimeInstantLayer::setModel(" << model << ")" << std::endl; |
64 | 59 |
65 emit modelReplaced(); | 60 emit modelReplaced(); |
66 } | 61 } |