Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py

changeset 495
b31b0bffa5b0
parent 470
99d8c50ba42f
child 536
6d8d39753c82
equal deleted inserted replaced
492:01f3384d535a 495:b31b0bffa5b0
7 Module implementing a dialog to show the output of the hg status command process. 7 Module implementing a dialog to show the output of the hg status command process.
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from PyQt4.QtCore import pyqtSlot, SIGNAL, Qt, QProcess, QTimer 12 from PyQt4.QtCore import pyqtSlot, Qt, QProcess, QTimer
13 from PyQt4.QtGui import QWidget, QDialogButtonBox, QMenu, QHeaderView, QTreeWidgetItem, \ 13 from PyQt4.QtGui import QWidget, QDialogButtonBox, QMenu, QHeaderView, QTreeWidgetItem, \
14 QMessageBox, QLineEdit 14 QMessageBox, QLineEdit
15 15
16 from E5Gui.E5Application import e5App 16 from E5Gui.E5Application import e5App
17 17
44 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) 44 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
45 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) 45 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
46 46
47 self.process = None 47 self.process = None
48 self.vcs = vcs 48 self.vcs = vcs
49 self.connect(self.vcs, SIGNAL("committed()"), self.__committed) 49 self.vcs.committed.connect(self.__committed)
50 50
51 self.statusList.headerItem().setText(self.__lastColumn, "") 51 self.statusList.headerItem().setText(self.__lastColumn, "")
52 self.statusList.header().setSortIndicator(self.__pathColumn, Qt.AscendingOrder) 52 self.statusList.header().setSortIndicator(self.__pathColumn, Qt.AscendingOrder)
53 53
54 self.menuactions = [] 54 self.menuactions = []

eric ide

mercurial