From 27873e37bd6a7e1b245a7fbf4046a78f39b3345a Mon Sep 17 00:00:00 2001 From: Stuart Swerdloff Date: Mon, 23 Oct 2023 00:45:24 +1300 Subject: [PATCH] disabled drag mode in DicomView which was root cause for mouseMoveEvent not getting through to Transect re-enabled mouse tracking in WindowingSlider --- src/View/mainpage/DicomView.py | 2 +- src/View/mainpage/WindowingSlider.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/mainpage/DicomView.py b/src/View/mainpage/DicomView.py index 0c8b3d01..380274ae 100644 --- a/src/View/mainpage/DicomView.py +++ b/src/View/mainpage/DicomView.py @@ -8,7 +8,7 @@ class CustomGraphicsView(QtWidgets.QGraphicsView): def __init__(self, parent=None): super().__init__(parent) - self.setDragMode(QtWidgets.QGraphicsView.ScrollHandDrag) + # self.setDragMode(QtWidgets.QGraphicsView.ScrollHandDrag) def wheelEvent(self, event: QtGui.QWheelEvent): modifiers = event.modifiers() diff --git a/src/View/mainpage/WindowingSlider.py b/src/View/mainpage/WindowingSlider.py index 18fab598..a08c56b2 100644 --- a/src/View/mainpage/WindowingSlider.py +++ b/src/View/mainpage/WindowingSlider.py @@ -61,7 +61,7 @@ def __init__(self, dicom_view, width=50): QtCore.QRectF(0, 0, self.fixed_width-10, self.height())) self.histogram_view.resize(self.fixed_width, self.height()) - #self.histogram_view.setMouseTracking(True) + self.histogram_view.setMouseTracking(True) self.histogram_view.viewport().installEventFilter(self) self.slider_density = int(self.height() / 3)