Skip to content

Commit

Permalink
Variable Explorer: Restore missing buttons in its Options menu
Browse files Browse the repository at this point in the history
This is a regression from PR #2584
  • Loading branch information
ccordoba12 committed Oct 11, 2015
1 parent 653b2a3 commit d020c1c
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions spyderlib/widgets/varexp/namespacebrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,17 @@ def setup(self, check_all=None, exclude_private=None,
show_image_func=self.show_image)
self.editor.sig_option_changed.connect(self.sig_option_changed.emit)
self.editor.sig_files_dropped.connect(self.import_data)

# Menu

# Setup layout
layout = QVBoxLayout()
blayout = QHBoxLayout()
toolbar = self.setup_toolbar(exclude_private, exclude_uppercase,
exclude_capitalized, exclude_unsupported,
autorefresh)
for widget in toolbar:
blayout.addWidget(widget)

# Options menu
options_button = create_toolbutton(self, text=_('Options'),
icon=ima.icon('tooloptions'))
options_button.setPopupMode(QToolButton.InstantPopup)
Expand All @@ -155,14 +164,6 @@ def setup(self, check_all=None, exclude_private=None,
add_actions(menu, actions)
options_button.setMenu(menu)

# Setup layout
layout = QVBoxLayout()
blayout = QHBoxLayout()
toolbar = self.setup_toolbar(exclude_private, exclude_uppercase,
exclude_capitalized, exclude_unsupported,
autorefresh)
for widget in toolbar:
blayout.addWidget(widget)
blayout.addStretch()
blayout.addWidget(options_button)
layout.addLayout(blayout)
Expand Down

0 comments on commit d020c1c

Please sign in to comment.