added "Multiple windows" option

This commit is contained in:
2023-01-05 16:44:55 +01:00
parent f4412f108f
commit cb79891a8f

View File

@ -21,14 +21,16 @@ class MDIArea(QMdiArea):
menu.addAction("Cascade", self.on_cascade)
menu.addAction("Tile", self.on_tile)
menu.addSeparator()
v1 = menu.addCheckbox("Single window", triggered=self.enable_single_window_mode)
v2 = menu.addCheckbox("Tabbed", triggered=self.enable_tabbed_view)
v0 = menu.addCheckbox("Multiple windows", triggered=self.enable_subwindow_view, state=True)
v1 = menu.addCheckbox("Single window", triggered=self.enable_single_window_mode)
v2 = menu.addCheckbox("Tabbed", triggered=self.enable_tabbed_view)
menu.addSeparator()
menu.addAction("Close all", self.closeAllSubWindows)
menu.addAction("Close inactive", self.closeInactiveSubWindows)
#TODO: move to MenuBase
ag = QActionGroup(menu.qmenu)
ag.addAction(v0)
ag.addAction(v1)
ag.addAction(v2)