Skip to content

Commit

Permalink
disabled drag mode in DicomView which was root cause for mouseMoveEve…
Browse files Browse the repository at this point in the history
…nt not

  getting through to Transect
re-enabled mouse tracking in WindowingSlider
  • Loading branch information
sjswerdloff committed Oct 22, 2023
1 parent 296fcf2 commit 27873e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/View/mainpage/DicomView.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/View/mainpage/WindowingSlider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 27873e3

Please sign in to comment.