moved "Plot selected" to right-click menu

This commit is contained in:
2023-01-09 20:08:40 +01:00
parent e8a6e2766e
commit 779446568e

View File

@ -24,15 +24,15 @@ class MainWindow(QMainWindow):
lst.setAlternatingRowColors(True)
lst.itemDoubleClicked.connect(self.on_select_list_item)
lst_menu = lst.lst.menu
lst_menu.addSeparator()
lst_menu.addAction("Plot selected", self.on_plot_selected)
bar = self.menuBar()
self.menu_settings = menu = BarMenu(bar, "&Settings")
menu.addCheckbox("Open new plots", state=True)
#TODO: where should this be? right click menu of the list?
self.menu_plot = menu = BarMenu(bar, "Plot")
menu.addAction("Plot selected", self.on_plot_selected)
self.mdi = mdi = MDIArea(bar)
splitter = QSplitter(Qt.Horizontal)