Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py

changeset 4052
17d8069de085
parent 4037
beb0e092738d
child 4065
8e81259fb739
equal deleted inserted replaced
4050:c8594f4f1b71 4052:17d8069de085
26 26
27 import Utilities 27 import Utilities
28 import Preferences 28 import Preferences
29 29
30 30
31 # TODO: add simple search functionality (s. LogViewer)
32 class HgDiffDialog(QWidget, Ui_HgDiffDialog): 31 class HgDiffDialog(QWidget, Ui_HgDiffDialog):
33 """ 32 """
34 Class implementing a dialog to show the output of the hg diff command 33 Class implementing a dialog to show the output of the hg diff command
35 process. 34 process.
36 """ 35 """
44 super(HgDiffDialog, self).__init__(parent) 43 super(HgDiffDialog, self).__init__(parent)
45 self.setupUi(self) 44 self.setupUi(self)
46 45
47 self.buttonBox.button(QDialogButtonBox.Save).setEnabled(False) 46 self.buttonBox.button(QDialogButtonBox.Save).setEnabled(False)
48 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) 47 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True)
48
49 self.searchWidget.attachTextEdit(self.contents)
49 50
50 self.process = QProcess() 51 self.process = QProcess()
51 self.vcs = vcs 52 self.vcs = vcs
52 self.__hgClient = self.vcs.getClient() 53 self.__hgClient = self.vcs.getClient()
53 54

eric ide

mercurial