Permalink
Browse files

Fix Overview Window steal focus MacOS

.. mousepad touch events require focus, so we disable
   touch events to stop the overview window from
   stealing focus from the ride list when scrolling
   through rides.
  • Loading branch information...
liversedge committed Sep 12, 2018
1 parent 143c10d commit e87d3b9dec9ed821566e83d344cff448601bd4ac
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Charts/OverviewWindow.cpp
@@ -57,6 +57,7 @@ OverviewWindow::OverviewWindow(Context *context) :
// add a view and scene and centre
scene = new QGraphicsScene(this);
view = new QGraphicsView(this);
view->viewport()->setAttribute(Qt::WA_AcceptTouchEvents, false); // stops it stealing focus on mouseover
scrollbar = new QScrollBar(Qt::Vertical, this);
// how to move etc

0 comments on commit e87d3b9

Please sign in to comment.