eric6/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/LfRevisionsInputDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
24 @param parent reference to the parent widget (QWidget) 24 @param parent reference to the parent widget (QWidget)
25 """ 25 """
26 super(LfRevisionsInputDialog, self).__init__(parent) 26 super(LfRevisionsInputDialog, self).__init__(parent)
27 self.setupUi(self) 27 self.setupUi(self)
28 28
29 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 29 self.buttonBox.button(
30 QDialogButtonBox.StandardButton.Ok).setEnabled(False)
30 31
31 @pyqtSlot() 32 @pyqtSlot()
32 def on_revisionsEdit_textChanged(self): 33 def on_revisionsEdit_textChanged(self):
33 """ 34 """
34 Private slot handling a change of revisions. 35 Private slot handling a change of revisions.
35 """ 36 """
36 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( 37 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
37 bool(self.revisionsEdit.toPlainText())) 38 bool(self.revisionsEdit.toPlainText()))
38 39
39 def getRevisions(self): 40 def getRevisions(self):
40 """ 41 """
41 Public method to retrieve the entered revisions. 42 Public method to retrieve the entered revisions.

eric ide

mercurial