Add a function wrapper that makes the linter happy when used for Qt slots

This commit is contained in:
Veronica Berglyd Olsen
2024-10-29 17:37:50 +01:00
parent b2d71acd93
commit 4eace705e3
3 changed files with 48 additions and 36 deletions
+6 -5
View File
@@ -904,11 +904,6 @@ class GuiMain(QMainWindow):
return not self.splitView.isVisible()
def toggleFullScreenMode(self) -> None:
"""Toggle full screen mode"""
self.setWindowState(self.windowState() ^ Qt.WindowState.WindowFullScreen)
return
##
# Events
##
@@ -924,6 +919,12 @@ class GuiMain(QMainWindow):
# Public Slots
##
@pyqtSlot()
def toggleFullScreenMode(self) -> None:
"""Toggle full screen mode"""
self.setWindowState(self.windowState() ^ Qt.WindowState.WindowFullScreen)
return
@pyqtSlot()
def closeDocEditor(self) -> None:
"""Close the document editor. This does not hide the editor."""