Skip to content

Commit

Permalink
Fix infocard title text stealing mouse focus on click events
Browse files Browse the repository at this point in the history
  • Loading branch information
JWCook committed Nov 1, 2022
1 parent 4c08cb7 commit 822b8b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions naturtag/widgets/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ def __init__(self, card_id: int = None):
self.title = QLabel()
self.title.setTextFormat(Qt.RichText)
self.title.setObjectName('h2')
# Don't let text steal mouse focus; pass click events to the card
self.title.mouseReleaseEvent = self.mouseReleaseEvent

self.details_layout = VerticalLayout()
self.details_layout.setAlignment(Qt.AlignLeft)
self.details_layout.addWidget(self.title)
Expand Down

0 comments on commit 822b8b2

Please sign in to comment.