From 8f5a8e70269a07faa9669d743228fb571c01de95 Mon Sep 17 00:00:00 2001
From: Bill Clark <saikou@vt.edu>
Date: Fri, 3 Apr 2015 15:30:34 -0400
Subject: qtgui: range comment cleanup

---
 gr-qtgui/python/qtgui/range.py | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

(limited to 'gr-qtgui/python/qtgui/range.py')

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)
-- 
cgit v1.2.3