summaryrefslogtreecommitdiff
path: root/gr-qtgui/python/qtgui/range.py
diff options
context:
space:
mode:
authorBill Clark <saikou@vt.edu>2015-04-03 15:30:34 -0400
committerBill Clark <saikou@vt.edu>2015-04-03 15:30:34 -0400
commit8f5a8e70269a07faa9669d743228fb571c01de95 (patch)
tree246d993a86eadc1f546477b44b79425c09671848 /gr-qtgui/python/qtgui/range.py
parent7c6946e4738a4c4afd2ba49acbf865b6ee4d4f4b (diff)
qtgui: range comment cleanup
Diffstat (limited to 'gr-qtgui/python/qtgui/range.py')
-rwxr-xr-xgr-qtgui/python/qtgui/range.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/gr-qtgui/python/qtgui/range.py b/gr-qtgui/python/qtgui/range.py
index 61eee03513..566170dde4 100755
--- a/gr-qtgui/python/qtgui/range.py
+++ b/gr-qtgui/python/qtgui/range.py
@@ -108,14 +108,8 @@ class RangeWidget(QtGui.QWidget):
self.valueChanged.connect(slot)
def mousePressEvent(self, event):
- #opt_style = QtGui.QStyleOption.init(None)
- #self.initStyleOption(opt_style)
- #sr = (self.style()).subControlRect(QtGui.QStyle.CC_Slider,opt_style,QtGui.QStyle.SC_SliderHandle,parent)
- if((event.button() == QtCore.Qt.LeftButton)):# and (sr.contains(event.pos()) == False)):
+ if((event.button() == QtCore.Qt.LeftButton)):
newVal = self.minimum() + ((self.maximum()-self.minimum()) * event.x()) / self.width()
- #if self.invertedAppearance():
- # self.setValue(self.maximum() - newVal)
- #else:
self.setValue(newVal)
event.accept()
QtGui.QSlider.mousePressEvent(self, event)