Skip to content

Commit

Permalink
canvas/canvasmain: Insert window group actions to the menu bar
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Jun 14, 2018
1 parent 221d1ea commit 5a04eec
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Orange/canvas/application/canvasmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,11 +684,14 @@ def setup_menu(self):

# View menu
self.view_menu = QMenu(self.tr("&View"), self)
self.toolbox_menu = QMenu(self.tr("Widget Toolbox Style"),
self.view_menu)
self.toolbox_menu_group = \
QActionGroup(self, objectName="toolbox-menu-group")
# find and insert window group presets submenu
window_groups = self.scheme_widget.findChild(
QAction, "window-groups-action"
)
if isinstance(window_groups, QAction):
self.view_menu.addAction(window_groups)

self.view_menu.addSeparator()
self.view_menu.addAction(self.toggle_tool_dock_expand)
self.view_menu.addAction(self.show_log_action)
self.view_menu.addAction(self.show_report_action)
Expand Down

0 comments on commit 5a04eec

Please sign in to comment.