comparison layer/TimeRulerLayer.cpp @ 1547:e6362cf5ff1d

Pass a y-coord, optionally, to Layer::snapToFeatureFrame. This is necessary for BoxLayer which needs to coordinate its snaps with the box it is highlighting for editing. Then in BoxLayer, merge getPointToDrag and getLocalPoints into a single getLocalPoint and use this throughout.
author Chris Cannam
date Thu, 17 Oct 2019 11:12:54 +0100
parents 36ad3cdabf55
children
comparison
equal deleted inserted replaced
1546:ec837d223bd9 1547:e6362cf5ff1d
49 emit modelReplaced(); 49 emit modelReplaced();
50 } 50 }
51 51
52 bool 52 bool
53 TimeRulerLayer::snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame, 53 TimeRulerLayer::snapToFeatureFrame(LayerGeometryProvider *v, sv_frame_t &frame,
54 int &resolution, SnapType snap) const 54 int &resolution, SnapType snap, int) const
55 { 55 {
56 auto model = ModelById::get(m_model); 56 auto model = ModelById::get(m_model);
57 if (!model) { 57 if (!model) {
58 resolution = 1; 58 resolution = 1;
59 return false; 59 return false;