Plugins/VcsPlugins/vcsMercurial/TransplantExtension/TransplantDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3008
7848489bcb92
child 3060
5883ce99ee12
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
21 """ 21 """
22 def __init__(self, multiRevsAllowed, parent=None): 22 def __init__(self, multiRevsAllowed, parent=None):
23 """ 23 """
24 Constructor 24 Constructor
25 25
26 @param multiRevsAllowed flag indicating, if multi revs are allowed (boolean) 26 @param multiRevsAllowed flag indicating, if multi revs are allowed
27 (boolean)
27 @param parent reference to the parent object (QObject) 28 @param parent reference to the parent object (QObject)
28 """ 29 """
29 super(RevisionsValidator, self).__init__(parent) 30 super(RevisionsValidator, self).__init__(parent)
30 31
31 self.__multiRevsAllowed = multiRevsAllowed 32 self.__multiRevsAllowed = multiRevsAllowed
93 def __updateOk(self): 94 def __updateOk(self):
94 """ 95 """
95 Private slot to update the state of the OK button. 96 Private slot to update the state of the OK button.
96 """ 97 """
97 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( 98 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(
98 self.revisionsEdit.toPlainText() != "" or self.allCheckBox.isChecked()) 99 self.revisionsEdit.toPlainText() != "" or
100 self.allCheckBox.isChecked())
99 101
100 @pyqtSlot() 102 @pyqtSlot()
101 def on_revisionsEdit_textChanged(self): 103 def on_revisionsEdit_textChanged(self):
102 """ 104 """
103 Private slot to react upon changes of revisions. 105 Private slot to react upon changes of revisions.

eric ide

mercurial