eric6/Plugins/VcsPlugins/vcsGit/GitCopyDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
50 else: 50 else:
51 self.forceCheckBox.setEnabled(False) 51 self.forceCheckBox.setEnabled(False)
52 52
53 self.sourceEdit.setText(source) 53 self.sourceEdit.setText(source)
54 54
55 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 55 self.buttonBox.button(
56 QDialogButtonBox.StandardButton.Ok).setEnabled(False)
56 57
57 msh = self.minimumSizeHint() 58 msh = self.minimumSizeHint()
58 self.resize(max(self.width(), msh.width()), msh.height()) 59 self.resize(max(self.width(), msh.width()), msh.height())
59 60
60 def getData(self): 61 def getData(self):
101 """ 102 """
102 Private slot to handle changes of the target. 103 Private slot to handle changes of the target.
103 104
104 @param txt contents of the target edit (string) 105 @param txt contents of the target edit (string)
105 """ 106 """
106 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( 107 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
107 os.path.isabs(txt) or os.path.dirname(txt) == "") 108 os.path.isabs(txt) or os.path.dirname(txt) == "")

eric ide

mercurial