Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

hgemail: define slots explicitly by using pyqtSlot

It's not required, but increases readability,
and is slightly faster according to PyQt document.

Changeset 027091452719

Parent f4361a7a0b83

by Yuya Nishihara

Changes to one file · Browse files at 027091452719 Showing diff from parent f4361a7a0b83 Diff from another changeset...

 
9
10
11
12
 
13
14
15
 
152
153
154
 
155
156
157
 
215
216
217
 
218
219
220
 
9
10
11
 
12
13
14
15
 
152
153
154
155
156
157
158
 
216
217
218
219
220
221
222
@@ -9,7 +9,7 @@
   import os, tempfile, re  from StringIO import StringIO -from PyQt4.QtCore import Qt, QAbstractTableModel, QVariant, QModelIndex +from PyQt4.QtCore import Qt, pyqtSlot, QAbstractTableModel, QVariant, QModelIndex  from PyQt4.QtGui import QDialog  from mercurial import hg, error, extensions, util  from tortoisehg.util import hglib, paths @@ -152,6 +152,7 @@
    return True   + @pyqtSlot()   def _validateform(self):   """Check form values to update send/preview availability"""   valid = self._isvalid() @@ -215,6 +216,7 @@
  self._qui.main_tabs.currentChanged.connect(self._refreshpreviewtab)   self._refreshpreviewtab(self._qui.main_tabs.currentIndex())   + @pyqtSlot(int)   def _refreshpreviewtab(self, index):   """Generate preview text if current tab is preview"""   if self._previewtabindex() != index: