Mercurial > hg > svgui
comparison layer/TextLayer.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 |
---|---|
46 TextLayer::setModel(TextModel *model) | 46 TextLayer::setModel(TextModel *model) |
47 { | 47 { |
48 if (m_model == model) return; | 48 if (m_model == model) return; |
49 m_model = model; | 49 m_model = model; |
50 | 50 |
51 connect(m_model, SIGNAL(modelChanged()), this, SIGNAL(modelChanged())); | 51 connectSignals(m_model); |
52 connect(m_model, SIGNAL(modelChanged(size_t, size_t)), | |
53 this, SIGNAL(modelChanged(size_t, size_t))); | |
54 | |
55 connect(m_model, SIGNAL(completionChanged()), | |
56 this, SIGNAL(modelCompletionChanged())); | |
57 | 52 |
58 // std::cerr << "TextLayer::setModel(" << model << ")" << std::endl; | 53 // std::cerr << "TextLayer::setModel(" << model << ")" << std::endl; |
59 | 54 |
60 emit modelReplaced(); | 55 emit modelReplaced(); |
61 } | 56 } |