From 29060feaa80ba85c7337a6661a7cacc929b1b934 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 19 Jan 2021 15:46:48 -0800 Subject: statistics/legend: fix dragging legend on touch screen While this didn't appear to be needed when dragging the legend with a mouse, on a touch screen for some reason the drag ended after 30 pixels either way horizontally (but no apparent limit vertically). By setting this flag to true, drags on a tablet appear to work as expected. Signed-off-by: Dirk Hohndel --- stats/statsview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stats/statsview.cpp b/stats/statsview.cpp index feb5a276e..6560360cc 100644 --- a/stats/statsview.cpp +++ b/stats/statsview.cpp @@ -68,6 +68,7 @@ void StatsView::mousePressEvent(QMouseEvent *event) dragStartItem = rect.topLeft(); draggedItem = &*legend; grabMouse(); + setKeepMouseGrab(true); // don't allow Qt to steal the grab } } } -- cgit v1.2.3-70-g09d2