Commit 64e47cc3 authored by Dan Pascu's avatar Dan Pascu

Overwrite setVisible as that is the base function

parent 4ba755aa
......@@ -138,13 +138,12 @@ class SegmentButton(QToolButton):
type = property(_get_type, _set_type)
del _get_type, _set_type
def hide(self):
super(SegmentButton, self).hide()
self.hidden.emit()
def show(self):
super(SegmentButton, self).show()
def setVisible(self, visible):
super(SegmentButton, self).setVisible(visible)
if visible:
self.shown.emit()
else:
self.hidden.emit()
class SwitchViewButton(QPushButton):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment