Skip to content

Commit

Permalink
Fix method signature incompatible with supertype's
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalo-bulnes committed Dec 15, 2022
1 parent 6169f7f commit 636dca0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ def enable_toggle(self) -> None:
self.setCheckable(True)
self.set_icon(on="star_on.svg", off="star_off.svg") # Undo icon change from disable_toggle

def eventFilter(self, obj: QObject, event: QEvent) -> None:
def eventFilter(self, obj: QObject, event: QEvent) -> bool:
"""
If the button is checkable then we show a hover state.
"""
Expand Down Expand Up @@ -1912,7 +1912,7 @@ def update_seen_by_list(self, usernames: Dict[str, User]) -> None:

self.check_mark.setToolTip(",\n".join(username for username in self.seen_by.keys()))

def eventFilter(self, obj: QObject, event: QEvent) -> None:
def eventFilter(self, obj: QObject, event: QEvent) -> bool:
t = event.type()
if t == QEvent.HoverEnter:
self.check_mark.setIcon(load_icon("checkmark_hover.svg"))
Expand Down Expand Up @@ -2325,7 +2325,7 @@ def adjust_width(self, container_width: int) -> None:
else:
self.setFixedWidth(int(container_width * self.WIDTH_TO_CONTAINER_WIDTH_RATIO))

def eventFilter(self, obj: QObject, event: QEvent) -> None:
def eventFilter(self, obj: QObject, event: QEvent) -> bool:
t = event.type()
if t == QEvent.MouseButtonPress:
if event.button() == Qt.LeftButton:
Expand Down

0 comments on commit 636dca0

Please sign in to comment.