Skip to content

Commit

Permalink
fixed init, disabled mouse tracking. not sure if this has impact
Browse files Browse the repository at this point in the history
  • Loading branch information
sjswerdloff committed Oct 22, 2023
1 parent 379c815 commit 296fcf2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/View/mainpage/WindowingSlider.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, dicom_view, width=50):
:param width: the fixed width of the widget
"""

super().__init__()
super(WindowingSlider,self).__init__()
self.action_handler = None
if WindowingSlider.SINGLETON is None:
WindowingSlider.SINGLETON = self
Expand Down 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 Expand Up @@ -359,8 +359,9 @@ class HistogramChart(QChartView):
WindowingSlider class.
"""

def __int__(self, parent):
def __init__(self, parent):
self.windowing_slider = parent
super().__init__()

def mousePressEvent(self, event):
self.windowing_slider.mouse_press(event)
Expand Down

0 comments on commit 296fcf2

Please sign in to comment.