33 from python_qt_binding.QtCore
import QEvent, QObject, Signal
37 """Signaler for for filtered events of an icon or title change of a widget."""
39 hide_signal = Signal(object)
40 show_signal = Signal(object)
42 window_icon_changed_signal = Signal(object)
43 window_title_changed_signal = Signal(object)
46 super(WindowChangedSignaler, self).
__init__(parent)
48 self.setObjectName(
'WindowChangedSignaler__' + self.
_widget.objectName())
50 self.
_widget.installEventFilter(self)
61 if event.type() == QEvent.Hide:
64 if event.type() == QEvent.Show:
67 if event.type() == QEvent.WindowIconChange:
74 if event.type() == QEvent.WindowTitleChange:
81 return QObject.eventFilter(self, watched, event)