def eventFilter()

in client/securedrop_client/gui/widgets.py [0:0]


    def eventFilter(self, obj: QObject, event: QEvent) -> bool:
        t = event.type()
        if t == QEvent.MouseButtonPress:
            assert isinstance(event, QMouseEvent)
            if event.button() == Qt.LeftButton:
                self._on_left_click()
        elif t == QEvent.HoverEnter and not self.downloading:
            self.download_button.setIcon(load_icon("download_file_hover.svg"))
        elif t == QEvent.HoverLeave and not self.downloading:
            self.download_button.setIcon(load_icon("download_file.svg"))

        return QObject.event(obj, event)