mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 06:54:17 +01:00
Only pass mouse events to cursors if they're enabled
This commit is contained in:
@@ -135,8 +135,9 @@ bool PlotView::eventFilter(QObject * obj, QEvent *event)
|
||||
|
||||
QMouseEvent *mouseEvent = static_cast<QMouseEvent *>(event);
|
||||
|
||||
if (cursors.mouseEvent(event->type(), *mouseEvent))
|
||||
return true;
|
||||
if (cursorsEnabled)
|
||||
if (cursors.mouseEvent(event->type(), *mouseEvent))
|
||||
return true;
|
||||
|
||||
int plotY = -verticalScrollBar()->value();
|
||||
for (auto&& plot : plots) {
|
||||
|
||||
Reference in New Issue
Block a user