Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py

changeset 3023
34ce20603bf7
parent 3020
542e97d4ecb3
child 3034
7ce719013078
child 3058
0a02c433f52d
equal deleted inserted replaced
3022:57179e4cdadd 3023:34ce20603bf7
130 130
131 def __resort(self): 131 def __resort(self):
132 """ 132 """
133 Private method to resort the tree. 133 Private method to resort the tree.
134 """ 134 """
135 self.statusList.sortItems(self.statusList.sortColumn(), 135 self.statusList.sortItems(
136 self.statusList.sortColumn(),
136 self.statusList.header().sortIndicatorOrder()) 137 self.statusList.header().sortIndicatorOrder())
137 138
138 def __resizeColumns(self): 139 def __resizeColumns(self):
139 """ 140 """
140 Private method to resize the list columns. 141 Private method to resize the list columns.
356 """ 357 """
357 if self.process is not None: 358 if self.process is not None:
358 self.process.setReadChannel(QProcess.StandardOutput) 359 self.process.setReadChannel(QProcess.StandardOutput)
359 360
360 while self.process.canReadLine(): 361 while self.process.canReadLine():
361 line = str(self.process.readLine(), 362 line = str(
362 Preferences.getSystem("IOEncoding"), 363 self.process.readLine(),
363 'replace') 364 Preferences.getSystem("IOEncoding"),
365 'replace')
364 self.__processOutputLine(line) 366 self.__processOutputLine(line)
365 367
366 def __processOutputLine(self, line): 368 def __processOutputLine(self, line):
367 """ 369 """
368 Private method to process the lines of output. 370 Private method to process the lines of output.

eric ide

mercurial