Commits

Yuya Nishihara committed f70c126

fileview: mark handlers of toolbar actions as pyqtSlot

Comments (0)

Files changed (1)

tortoisehg/hgqt/fileview.py

         self.timer.setSingleShot(False)
         self.timer.timeout.connect(self.timerBuildDiffMarkers)
 
+    @pyqtSlot()
     def launchShelve(self):
         from tortoisehg.hgqt import shelve
         # TODO: pass self._filename
         self.sci.setUpdatesEnabled(True)
         self.blk.setUpdatesEnabled(True)
 
+    @pyqtSlot()
     def nextDiff(self):
         if not self._diffs:
             self.actionNextDiff.setEnabled(False)
         self.actionNextDiff.setEnabled(not last)
         self.actionPrevDiff.setEnabled(True)
 
+    @pyqtSlot()
     def prevDiff(self):
         if not self._diffs:
             self.actionNextDiff.setEnabled(False)
     def nDiffs(self):
         return len(self._diffs)
 
+    @pyqtSlot()
     def gotoLine(self):
         last = self.sci.lines()
         if last == 0: