Plugins/VcsPlugins/vcsMercurial/HgCommitDialog.py

changeset 495
b31b0bffa5b0
parent 178
dd9f0bca5e2f
child 496
ed1e3f654d0b
equal deleted inserted replaced
492:01f3384d535a 495:b31b0bffa5b0
5 5
6 """ 6 """
7 Module implementing a dialog to enter the commit message. 7 Module implementing a dialog to enter the commit message.
8 """ 8 """
9 9
10 from PyQt4.QtCore import pyqtSlot, Qt, SIGNAL 10 from PyQt4.QtCore import pyqtSlot, Qt
11 from PyQt4.QtGui import QWidget, QDialogButtonBox 11 from PyQt4.QtGui import QWidget, QDialogButtonBox
12 12
13 from .Ui_HgCommitDialog import Ui_HgCommitDialog 13 from .Ui_HgCommitDialog import Ui_HgCommitDialog
14 14
15 import Preferences 15 import Preferences
73 def on_buttonBox_accepted(self): 73 def on_buttonBox_accepted(self):
74 """ 74 """
75 Private slot called by the buttonBox accepted signal. 75 Private slot called by the buttonBox accepted signal.
76 """ 76 """
77 self.close() 77 self.close()
78 self.emit(SIGNAL("accepted()")) 78 self.accepted.emit()
79 79
80 def on_buttonBox_rejected(self): 80 def on_buttonBox_rejected(self):
81 """ 81 """
82 Private slot called by the buttonBox rejected signal. 82 Private slot called by the buttonBox rejected signal.
83 """ 83 """
84 self.close() 84 self.close()
85 self.emit(SIGNAL("rejected()")) 85 self.rejected.emit()
86 86
87 @pyqtSlot(str) 87 @pyqtSlot(str)
88 def on_recentComboBox_activated(self, txt): 88 def on_recentComboBox_activated(self, txt):
89 """ 89 """
90 Private slot to select a commit message from recent ones. 90 Private slot to select a commit message from recent ones.

eric ide

mercurial