mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Give QMenu cursor: pointer
This commit is contained in:
parent
9d6cd4cd76
commit
633f897e67
1 changed files with 2 additions and 1 deletions
|
@ -345,7 +345,7 @@ class AnkiApp(QApplication):
|
|||
##################################################
|
||||
|
||||
def eventFilter(self, src: Any, evt: QEvent) -> bool:
|
||||
if evt.type() == QEvent.Type.HoverEnter:
|
||||
if evt.type() in [QEvent.Type.Enter, QEvent.Type.HoverEnter]:
|
||||
if (
|
||||
(
|
||||
isinstance(
|
||||
|
@ -354,6 +354,7 @@ class AnkiApp(QApplication):
|
|||
QPushButton,
|
||||
QCheckBox,
|
||||
QRadioButton,
|
||||
QMenu,
|
||||
# classes with PyQt5 compatibility proxy
|
||||
without_qt5_compat_wrapper(QToolButton),
|
||||
without_qt5_compat_wrapper(QTabBar),
|
||||
|
|
Loading…
Reference in a new issue