Give QMenu cursor: pointer

This commit is contained in:
Matthias Metelka 2022-10-09 23:10:04 +02:00
parent 9d6cd4cd76
commit 633f897e67

View file

@ -345,7 +345,7 @@ class AnkiApp(QApplication):
################################################## ##################################################
def eventFilter(self, src: Any, evt: QEvent) -> bool: 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 ( if (
( (
isinstance( isinstance(
@ -354,6 +354,7 @@ class AnkiApp(QApplication):
QPushButton, QPushButton,
QCheckBox, QCheckBox,
QRadioButton, QRadioButton,
QMenu,
# classes with PyQt5 compatibility proxy # classes with PyQt5 compatibility proxy
without_qt5_compat_wrapper(QToolButton), without_qt5_compat_wrapper(QToolButton),
without_qt5_compat_wrapper(QTabBar), without_qt5_compat_wrapper(QTabBar),