hints: Include button in buttons().
From the QMouseEvent::buttons documentation: For mouse move events, this is all buttons that are pressed down. For mouse press and double click events this includes the button that caused the event. For mouse release events this excludes the button that caused the event.
This commit is contained in:
parent
ddb39275eb
commit
a12dee8898
@ -398,7 +398,7 @@ class HintManager(QObject):
|
||||
self.set_open_target.emit(target.name)
|
||||
events += [
|
||||
QMouseEvent(QEvent.MouseButtonPress, pos, Qt.LeftButton,
|
||||
Qt.NoButton, modifiers),
|
||||
Qt.LeftButton, modifiers),
|
||||
QMouseEvent(QEvent.MouseButtonRelease, pos, Qt.LeftButton,
|
||||
Qt.NoButton, modifiers),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user