From 33a4bc0fc9c22dfa868e5e2c1a8e9ea5ccf5cc3b Mon Sep 17 00:00:00 2001 From: houston Date: Wed, 23 Oct 2019 23:56:25 +0200 Subject: [PATCH] fix 2 unneeded differencies --- source/frontend/widgets/pixmapdial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/frontend/widgets/pixmapdial.py b/source/frontend/widgets/pixmapdial.py index 8ab06d00a..354ca1483 100644 --- a/source/frontend/widgets/pixmapdial.py +++ b/source/frontend/widgets/pixmapdial.py @@ -277,7 +277,7 @@ class PixmapDial(QDial): else: qtValue = round(float(value - self.fMinimum) / float(self.fMaximum - self.fMinimum) * self.fPrecision) self.fRealValue = value - + # Block change signal, we'll handle it ourselves self.blockSignals(True) QDial.setValue(self, qtValue) @@ -288,7 +288,7 @@ class PixmapDial(QDial): @pyqtSlot(int) def slot_valueChanged(self, value): - self.fRealValue = float(value)/10000.0 * (self.fMaximum - self.fMinimum) + self.fMinimum + self.fRealValue = float(value)/self.fPrecision * (self.fMaximum - self.fMinimum) + self.fMinimum self.realValueChanged.emit(self.fRealValue) @pyqtSlot()