From 296fcf293de28104eb665f12de2261d81813267a Mon Sep 17 00:00:00 2001 From: Stuart Swerdloff Date: Sun, 22 Oct 2023 22:59:04 +1300 Subject: [PATCH] fixed init, disabled mouse tracking. not sure if this has impact --- src/View/mainpage/WindowingSlider.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/View/mainpage/WindowingSlider.py b/src/View/mainpage/WindowingSlider.py index c53205c9..18fab598 100644 --- a/src/View/mainpage/WindowingSlider.py +++ b/src/View/mainpage/WindowingSlider.py @@ -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 @@ -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) @@ -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)