Skip to content

Commit

Permalink
qtutils: add hide_dock() helper
Browse files Browse the repository at this point in the history
Related-to: git-cola#848
Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
davvid committed Jul 13, 2018
1 parent c4d369a commit 5498272
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cola/qtutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,11 @@ def create_dock(title, parent, stretch=True, widget=None, fn=None):
return dock


def hide_dock(widget):
widget.toggleViewAction().setChecked(False)
widget.hide()


def create_menu(title, parent):
"""Create a menu and set its title."""
qmenu = DebouncingMenu(title, parent)
Expand Down

0 comments on commit 5498272

Please sign in to comment.