comparison view/PaneStack.cpp @ 1615:911330a28a7c

Where the "below" view represents only a subset of the "above" view, cut off the feature mappings at the outer edges of the "below" view - don't map everything outside this (it would all just map onto the same single points at beginning and end, which is excessive, confusing and not useful)
author Chris Cannam
date Thu, 02 Jul 2020 15:37:43 +0100
parents c6f5c822b10d
children
comparison
equal deleted inserted replaced
1614:c6f5c822b10d 1615:911330a28a7c
219 av = m_panes[i].alignmentView; 219 av = m_panes[i].alignmentView;
220 if (!av) continue; 220 if (!av) continue;
221 if (!(m_options & int(Option::ShowAlignmentViews))) { 221 if (!(m_options & int(Option::ShowAlignmentViews))) {
222 av->hide(); 222 av->hide();
223 } else { 223 } else {
224 av->setViewAbove(m_panes[i-1].pane); 224 av->setAboveView(m_panes[i-1].pane);
225 av->setViewBelow(m_panes[i].pane); 225 av->setBelowView(m_panes[i].pane);
226 av->setReferenceView(m_panes[0].pane);
226 av->show(); 227 av->show();
227 } 228 }
228 } 229 }
229 230
230 adjustAlignmentViewHeights(size().height()); 231 adjustAlignmentViewHeights(size().height());
234 PaneStack::unlinkAlignmentViews() 235 PaneStack::unlinkAlignmentViews()
235 { 236 {
236 for (int i = 0; in_range_for(m_panes, i); ++i) { 237 for (int i = 0; in_range_for(m_panes, i); ++i) {
237 auto av = m_panes[i].alignmentView; 238 auto av = m_panes[i].alignmentView;
238 if (!av) continue; 239 if (!av) continue;
239 av->setViewAbove(nullptr); 240 av->setAboveView(nullptr);
240 av->setViewBelow(nullptr); 241 av->setBelowView(nullptr);
242 av->setReferenceView(nullptr);
241 } 243 }
242 } 244 }
243 245
244 void 246 void
245 PaneStack::resizeEvent(QResizeEvent *ev) 247 PaneStack::resizeEvent(QResizeEvent *ev)