eric6/Plugins/VcsPlugins/vcsSubversion/SvnCopyDialog.py

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

eric ide

mercurial