comparison layer/TextLayer.cpp @ 1470:696e569ff21b by-id

Further layer updates for ById
author Chris Cannam
date Fri, 28 Jun 2019 17:37:22 +0100
parents e2b6a13a1f69
children f2525e6cbdf1
comparison
equal deleted inserted replaced
1469:11a150e65ee1 1470:696e569ff21b
41 m_editingCommand(nullptr) 41 m_editingCommand(nullptr)
42 { 42 {
43 43
44 } 44 }
45 45
46 void 46 int
47 TextLayer::setModel(TextModel *model) 47 TextLayer::getCompletion(LayerGeometryProvider *) const
48 {
49 auto model = ModelById::get(m_model);
50 if (model) return model->getCompletion();
51 else return 0;
52 }
53
54 void
55 TextLayer::setModel(ModelId model)
48 { 56 {
49 if (m_model == model) return; 57 if (m_model == model) return;
50 m_model = model; 58 m_model = model;
51 59
52 connectSignals(m_model); 60 connectSignals(m_model);