mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-26 16:32:06 +08:00
Cabana: right click on the chart to reset zoom (#26088)
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