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): ...@@ -138,13 +138,12 @@ class SegmentButton(QToolButton):
type = property(_get_type, _set_type) type = property(_get_type, _set_type)
del _get_type, _set_type del _get_type, _set_type
def hide(self): def setVisible(self, visible):
super(SegmentButton, self).hide() super(SegmentButton, self).setVisible(visible)
self.hidden.emit() if visible:
def show(self):
super(SegmentButton, self).show()
self.shown.emit() self.shown.emit()
else:
self.hidden.emit()
class SwitchViewButton(QPushButton): 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