Work around CI failure on Windows with PyQt 6.5.2

This commit is contained in:
Damien Elmes 2023-07-26 21:10:19 +10:00
parent 9ce98207be
commit 4691560522

View file

@ -1668,7 +1668,9 @@ title="{}" {}>{}</button>""".format(
def hideStatusTips(self) -> None:
for action in self.findChildren(QAction):
cast(QAction, action).setStatusTip("")
# On Windows, this next line gives a 'redundant cast' error after moving to
# PyQt6.5.2.
cast(QAction, action).setStatusTip("") # type: ignore
def onMacMinimize(self) -> None:
self.setWindowState(self.windowState() | Qt.WindowState.WindowMinimized) # type: ignore