eric6/Plugins/VcsPlugins/vcsMercurial/HgCopyDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
44 else: 44 else:
45 self.forceCheckBox.setEnabled(False) 45 self.forceCheckBox.setEnabled(False)
46 46
47 self.sourceEdit.setText(source) 47 self.sourceEdit.setText(source)
48 48
49 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 49 self.buttonBox.button(
50 QDialogButtonBox.StandardButton.Ok).setEnabled(False)
50 51
51 msh = self.minimumSizeHint() 52 msh = self.minimumSizeHint()
52 self.resize(max(self.width(), msh.width()), msh.height()) 53 self.resize(max(self.width(), msh.width()), msh.height())
53 54
54 def getData(self): 55 def getData(self):
69 """ 70 """
70 Private slot to handle changes of the target. 71 Private slot to handle changes of the target.
71 72
72 @param txt contents of the target edit (string) 73 @param txt contents of the target edit (string)
73 """ 74 """
74 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( 75 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
75 os.path.isabs(txt) or os.path.dirname(txt) == "") 76 os.path.isabs(txt) or os.path.dirname(txt) == "")

eric ide

mercurial