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): |