Cabana: right click on the chart to reset zoom (#26088)
old-commit-hash: deac907cb44230f641fde5ca1ba22d7c5e236d90
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user