12 import time |
12 import time |
13 |
13 |
14 from PyQt4.QtCore import * |
14 from PyQt4.QtCore import * |
15 from PyQt4.QtGui import * |
15 from PyQt4.QtGui import * |
16 |
16 |
17 from E4Gui.E4Completers import E4FileCompleter |
17 from E5Gui.E5Completers import E5FileCompleter |
18 |
18 |
19 from .Ui_DiffDialog import Ui_DiffDialog |
19 from .Ui_DiffDialog import Ui_DiffDialog |
20 import Utilities |
20 import Utilities |
21 |
21 |
22 from difflib import SequenceMatcher |
22 from difflib import SequenceMatcher |
193 Constructor |
193 Constructor |
194 """ |
194 """ |
195 QWidget.__init__(self,parent) |
195 QWidget.__init__(self,parent) |
196 self.setupUi(self) |
196 self.setupUi(self) |
197 |
197 |
198 self.file1Completer = E4FileCompleter(self.file1Edit) |
198 self.file1Completer = E5FileCompleter(self.file1Edit) |
199 self.file2Completer = E4FileCompleter(self.file2Edit) |
199 self.file2Completer = E5FileCompleter(self.file2Edit) |
200 |
200 |
201 self.diffButton = \ |
201 self.diffButton = \ |
202 self.buttonBox.addButton(self.trUtf8("Compare"), QDialogButtonBox.ActionRole) |
202 self.buttonBox.addButton(self.trUtf8("Compare"), QDialogButtonBox.ActionRole) |
203 self.diffButton.setToolTip(\ |
203 self.diffButton.setToolTip(\ |
204 self.trUtf8("Press to perform the comparison of the two files")) |
204 self.trUtf8("Press to perform the comparison of the two files")) |