mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix(main_window): event filter applied on QEvent.Type.StatusTip; closes #698
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from qtpy.QtCore import QSize
|
from qtpy.QtCore import QEvent, QSize
|
||||||
from qtpy.QtGui import QAction, QActionGroup, QIcon
|
from qtpy.QtGui import QAction, QActionGroup, QIcon
|
||||||
from qtpy.QtWidgets import QApplication, QMainWindow, QStyle
|
from qtpy.QtWidgets import QApplication, QMainWindow, QStyle
|
||||||
|
|
||||||
@ -168,6 +168,11 @@ class BECMainWindow(BECWidget, QMainWindow):
|
|||||||
def change_theme(self, theme: str):
|
def change_theme(self, theme: str):
|
||||||
apply_theme(theme)
|
apply_theme(theme)
|
||||||
|
|
||||||
|
def event(self, event):
|
||||||
|
if event.type() == QEvent.Type.StatusTip:
|
||||||
|
return True
|
||||||
|
return super().event(event)
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
central_widget = self.centralWidget()
|
central_widget = self.centralWidget()
|
||||||
central_widget.close()
|
central_widget.close()
|
||||||
|
Reference in New Issue
Block a user