eric6/Plugins/VcsPlugins/vcsGit/GitNewProjectOptionsDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
61 Utilities.fromNativeSeparators(ipath) + "/", 61 Utilities.fromNativeSeparators(ipath) + "/",
62 ] 62 ]
63 self.vcsProjectDirEdit.setText( 63 self.vcsProjectDirEdit.setText(
64 Utilities.toNativeSeparators(self.__initPaths[0])) 64 Utilities.toNativeSeparators(self.__initPaths[0]))
65 65
66 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 66 self.buttonBox.button(
67 QDialogButtonBox.StandardButton.Ok).setEnabled(False)
67 68
68 msh = self.minimumSizeHint() 69 msh = self.minimumSizeHint()
69 self.resize(max(self.width(), msh.width()), msh.height()) 70 self.resize(max(self.width(), msh.width()), msh.height())
70 71
71 @pyqtSlot(str) 72 @pyqtSlot(str)
73 """ 74 """
74 Private slot to handle a change of the project directory. 75 Private slot to handle a change of the project directory.
75 76
76 @param txt name of the project directory (string) 77 @param txt name of the project directory (string)
77 """ 78 """
78 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( 79 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
79 bool(txt) and 80 bool(txt) and
80 Utilities.fromNativeSeparators(txt) not in self.__initPaths) 81 Utilities.fromNativeSeparators(txt) not in self.__initPaths)
81 82
82 @pyqtSlot() 83 @pyqtSlot()
83 def on_vcsUrlButton_clicked(self): 84 def on_vcsUrlButton_clicked(self):
130 # assume scp like repository URL 131 # assume scp like repository URL
131 enable = True 132 enable = True
132 else: 133 else:
133 vcsUrlEnable = True 134 vcsUrlEnable = True
134 135
135 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) 136 self.buttonBox.button(
137 QDialogButtonBox.StandardButton.Ok).setEnabled(enable)
136 self.vcsUrlButton.setEnabled(vcsUrlEnable) 138 self.vcsUrlButton.setEnabled(vcsUrlEnable)
137 139
138 @pyqtSlot() 140 @pyqtSlot()
139 def on_vcsUrlClearHistoryButton_clicked(self): 141 def on_vcsUrlClearHistoryButton_clicked(self):
140 """ 142 """

eric ide

mercurial