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

hgemail: use PyQt's new-style signal connection

Changeset f4361a7a0b83

Parent 7099a6f0c824

by Yuya Nishihara

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

 
9
10
11
12
 
13
14
15
 
161
162
163
164
165
166
 
167
168
169
 
170
171
172
 
215
216
217
218
219
 
220
221
222
 
9
10
11
 
12
13
14
15
 
161
162
163
 
 
 
164
165
 
 
166
167
168
169
 
212
213
214
 
 
215
216
217
218
@@ -9,7 +9,7 @@
   import os, tempfile, re  from StringIO import StringIO -from PyQt4.QtCore import SIGNAL, Qt, QAbstractTableModel, QVariant, QModelIndex +from PyQt4.QtCore import Qt, QAbstractTableModel, QVariant, QModelIndex  from PyQt4.QtGui import QDialog  from mercurial import hg, error, extensions, util  from tortoisehg.util import hglib, paths @@ -161,12 +161,9 @@
  def _connectvalidateform(self):   # TODO: connect programmatically   for e in ('to_edit', 'from_edit', 'subject_edit'): - self.connect(getattr(self._qui, e), - SIGNAL('textChanged(QString)'), - self._validateform) + getattr(self._qui, e).textChanged.connect(self._validateform)   - self.connect(self._qui.writeintro_check, SIGNAL('toggled(bool)'), - self._validateform) + self._qui.writeintro_check.toggled.connect(self._validateform)     def accept(self):   # TODO: want to pass patchbombopts directly @@ -215,8 +212,7 @@
  # TODO: better way to setup diff lexer   initqsci(self._qui.preview_edit)   - self.connect(self._qui.main_tabs, SIGNAL('currentChanged(int)'), - self._refreshpreviewtab) + self._qui.main_tabs.currentChanged.connect(self._refreshpreviewtab)   self._refreshpreviewtab(self._qui.main_tabs.currentIndex())     def _refreshpreviewtab(self, index):