Cabana: right click on the chart to reset zoom (#26088)

old-commit-hash: deac907cb4
taco
Dean Lee 3 years ago committed by GitHub
parent 961c613005
commit bf2c8ed41e
  1. 8
      tools/cabana/chartswidget.cc

@ -305,8 +305,14 @@ void ChartView::mouseReleaseEvent(QMouseEvent *event) {
event->accept();
return;
}
} else if (event->button() == Qt::RightButton) {
// reset zoom
if (can->isZoomed()) {
can->resetRange();
event->accept();
return;
}
}
// TODO: right-click to reset zoom
QChartView::mouseReleaseEvent(event);
line_marker->setVisible(true);
}

Loading…
Cancel
Save