  
  private:
    void resizeEvent(QResizeEvent *event) override;
    void alignCharts();
    void newChart();
    ChartView *createChart();
    void removeChart(ChartView *chart);
 
</s> remove   void zoomReset();
 </s> add   void zoomUndo(); </s> remove   zoomIn(display_range.first, display_range.second);
 </s> add   setZoom(display_range.first, display_range.second);
}

void ChartsWidget::zoomUndo() {
  if (!zoom_stack.isEmpty()) {
    auto r = zoom_stack.pop();
    setZoom(r.first, r.second);
  } else {
    zoomReset();
  } </s> remove void ChartsWidget::zoomIn(double min, double max) {
 </s> add void ChartsWidget::setZoom(double min, double max) {
  bool event(QEvent *event) override;
  
  private:
    void resizeEvent(QResizeEvent *event) override;
  bool event(QEvent *event) override;
    void alignCharts();
    void newChart();
    ChartView *createChart();
    void removeChart(ChartView *chart);
keep keep add keep keep keep keep
 cabana: go to previous zoom window (#27702)

* cabana: go to previous zoom level

* zoom undo on right click

* catch mousepress event on linux 
tools/cabana/chartswidget.h