416 paras += 1 |
416 paras += 1 |
417 if not (paras % self.updateInterval): |
417 if not (paras % self.updateInterval): |
418 QApplication.processEvents() |
418 QApplication.processEvents() |
419 |
419 |
420 if paras == 0: |
420 if paras == 0: |
421 self.__appendText( |
421 self.__appendText(self.tr('There is no difference.')) |
422 self.tr('There is no difference.'), self.cNormalFormat) |
|
423 |
422 |
424 def __generateContextDiff(self, a, b, fromfile, tofile, |
423 def __generateContextDiff(self, a, b, fromfile, tofile, |
425 fromfiledate, tofiledate): |
424 fromfiledate, tofiledate): |
426 """ |
425 """ |
427 Private slot to generate a context diff output. |
426 Private slot to generate a context diff output. |
440 paras += 1 |
439 paras += 1 |
441 if not (paras % self.updateInterval): |
440 if not (paras % self.updateInterval): |
442 QApplication.processEvents() |
441 QApplication.processEvents() |
443 |
442 |
444 if paras == 0: |
443 if paras == 0: |
445 self.__appendText( |
444 self.__appendText(self.tr('There is no difference.')) |
446 self.tr('There is no difference.'), self.cNormalFormat) |
|
447 |
445 |
448 def __fileChanged(self): |
446 def __fileChanged(self): |
449 """ |
447 """ |
450 Private slot to enable/disable the Compare button. |
448 Private slot to enable/disable the Compare button. |
451 """ |
449 """ |