[qt] remove toolbar visibility config entries (closes #109851)

config entries toolbarrev and toolbardiff are removed. These entries were used to define the default toolbar visibility. Now, they are useless as the default status are set in a more userfriendly way (see 519b4a226b8c).

authorAlain Leufroy <alain.leufroy@logilab.fr>
changeset7cee5f88daec
branchdefault
phasepublic
hiddenno
parent revision#519b4a226b8c [qt4] persistent toolbar visibility (closes #109851)
child revision#be851715e320 [qt] subrepo: add support for nested repositories (closes #105169), #618c645aff6d merge stable into default
files modified by this revision
hgviewlib/config.py
hgviewlib/qt4/hgrepoviewer.py
# HG changeset patch
# User Alain Leufroy <alain.leufroy@logilab.fr>
# Date 1365787289 -7200
# Fri Apr 12 19:21:29 2013 +0200
# Node ID 7cee5f88daec40650f9c8c43a2bd20f8a01770ef
# Parent 519b4a226b8ca3d801e762729dc0cf1763bec5e2
[qt] remove toolbar visibility config entries (closes #109851)

config entries ``toolbarrev`` and ``toolbardiff`` are removed. These
entries were used to define the default toolbar visibility. Now, they
are useless as the default status are set in a more userfriendly way
(see 519b4a226b8c).

diff --git a/hgviewlib/config.py b/hgviewlib/config.py
@@ -282,24 +282,10 @@
1          mqhidetags: hide mq tags
2          """
3          return self._fromconfig('mqhidetags', default)
4 
5      @cached
6 -    def getToolBarRevAtStartup(self, default=True):
7 -        """
8 -        toolbarrev: show hidden changeset at startup
9 -        """
10 -        return bool(self._fromconfig('toolbarrev', default))
11 -
12 -    @cached
13 -    def getToolBarDiffAtStartup(self, default=True):
14 -        """
15 -        toolbardiff: show hidden changeset at startup
16 -        """
17 -        return bool(self._fromconfig('toolbardiff', default))
18 -
19 -    @cached
20      def getContentAtStartUp(self, default=True):
21          """
22          contentatstartup: show the content of changeset at startup (bottom part)
23          """
24          return bool(self._fromconfig('contentatstartup', default))
diff --git a/hgviewlib/qt4/hgrepoviewer.py b/hgviewlib/qt4/hgrepoviewer.py
@@ -215,16 +215,14 @@
25 
26          # diff mode toolbar
27          actions = self.textview_status.sci._actions
28          for action_name in ('diffmode', 'prev', 'next', 'show-big-file'):
29              self.toolBar_diff.addAction(actions[action_name])
30 -        self.toolBar_diff.setVisible(self.cfg.getToolBarDiffAtStartup())
31 
32          # rev mod toolbar
33          if self.textview_header.rst_action is not None:
34              self.toolBar_rev.addAction(self.textview_header.rst_action)
35 -        self.toolBar_rev.setVisible(self.cfg.getToolBarRevAtStartup())
36 
37          self._handle_toolbar_visibility()
38 
39      def _handle_toolbar_visibility(self):
40          """Initial value and event hooking