1. André Felipe Dias
  2. thg_pt-BR

Commits

Yuya Nishihara  committed 127e846

fileview: rename internal setMode(QAction) slot to avoid name conflict

I'll add public setMode(mode) method.

  • Participants
  • Parent commits 0998cde
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/fileview.py

View file
  • Ignore whitespace
         self.modeToggleGroup.addAction(self.actionDiffMode)
         self.modeToggleGroup.addAction(self.actionFileMode)
         self.modeToggleGroup.addAction(self.actionAnnMode)
-        self.modeToggleGroup.triggered.connect(self.setMode)
+        self.modeToggleGroup.triggered.connect(self._setModeByAction)
 
         # Next/Prev diff (in full file mode)
         self.actionNextDiff = QAction(qtlib.geticon('go-down'),
                                       _('Previous diff (alt+up)'), self)
         self.actionPrevDiff.setShortcut('Alt+Up')
         self.actionPrevDiff.triggered.connect(self.prevDiff)
-        self.setMode(self.actionDiffMode)
+        self._setModeByAction(self.actionDiffMode)
 
         self.actionFirstParent = QAction('1', self)
         self.actionFirstParent.setCheckable(True)
         return True
 
     @pyqtSlot(QAction)
-    def setMode(self, action):
+    def _setModeByAction(self, action):
         'One of the mode toolbar buttons has been toggled'
         mode = action._mode
         self._lostMode = mode