Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1.2 and tip

stable status, commit, repofilter: improve appearance of menu buttons

Changeset f0a7cbb21df9

Parent 07bf73366021

by David Golub

Changes to 3 files · Browse files at f0a7cbb21df9 Showing diff from parent 07bf73366021 Diff from another changeset...

 
99
100
101
102
 
103
 
104
105
106
 
99
100
101
 
102
103
104
105
106
107
@@ -99,8 +99,9 @@
    self.recentMessagesButton = QToolButton(   text=_('Copy message'), - popupMode=QToolButton.InstantPopup, + popupMode=QToolButton.MenuButtonPopup,   toolTip=_('Copy one of the recent commit messages')) + self.recentMessagesButton.clicked.connect(self.recentMessagesButton.showMenu)   tbar.addWidget(self.recentMessagesButton)   self.updateRecentMessages()  
 
202
203
204
205
 
206
 
207
208
209
 
202
203
204
 
205
206
207
208
209
210
@@ -202,8 +202,9 @@
    def _initbranchfilter(self):   self._branchLabel = QToolButton( - text=_('Branch'), popupMode=QToolButton.InstantPopup, + text=_('Branch'), popupMode=QToolButton.MenuButtonPopup,   statusTip=_('Display graph the named branch only')) + self._branchLabel.clicked.connect(self._branchLabel.showMenu)   self._branchMenu = QMenu(self._branchLabel)   self._abranchAction = self._branchMenu.addAction(   _('Display only active branches'), self.refresh)
 
812
813
814
815
 
816
817
818
 
819
820
821
 
845
846
847
848
 
849
850
851
 
812
813
814
 
815
816
817
818
819
820
821
822
 
846
847
848
 
849
850
851
852
@@ -812,10 +812,11 @@
  #if 'text' not in kwargs:   # kwargs['text'] = _('Status')   super(StatusFilterButton, self).__init__( - parent, popupMode=QToolButton.InstantPopup, + parent, popupMode=QToolButton.MenuButtonPopup,   icon=qtlib.geticon('hg-status'),   toolButtonStyle=Qt.ToolButtonTextBesideIcon, **kwargs)   + self.clicked.connect(self.showMenu)   self._initactions(statustext)     def _initactions(self, text): @@ -845,7 +846,7 @@
  assert util.all(c in self._TYPES for c in text)   for c in self._TYPES:   self._actions[c].setChecked(c in text) - +  class StatusDialog(QDialog):   'Standalone status browser'   def __init__(self, repo, pats, opts, parent=None):