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:
Florian Bruhin 2015-02-26 20:12:48 +01:00
parent ddb39275eb
commit a12dee8898

View File

@ -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),
]