37 super(GitArchiveDataDialog, self).__init__(parent) |
37 super(GitArchiveDataDialog, self).__init__(parent) |
38 self.setupUi(self) |
38 self.setupUi(self) |
39 |
39 |
40 self.fileButton.setIcon(UI.PixmapCache.getIcon("open")) |
40 self.fileButton.setIcon(UI.PixmapCache.getIcon("open")) |
41 |
41 |
42 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
42 self.buttonBox.button( |
|
43 QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
43 |
44 |
44 self.tagCombo.addItems(sorted(tagsList)) |
45 self.tagCombo.addItems(sorted(tagsList)) |
45 self.branchCombo.addItems(["master"] + sorted(branchesList)) |
46 self.branchCombo.addItems(["master"] + sorted(branchesList)) |
46 self.formatComboBox.addItems(sorted(formatsList)) |
47 self.formatComboBox.addItems(sorted(formatsList)) |
47 self.formatComboBox.setCurrentIndex( |
48 self.formatComboBox.setCurrentIndex( |
62 elif self.branchButton.isChecked(): |
63 elif self.branchButton.isChecked(): |
63 enabled = self.branchCombo.currentText() != "" |
64 enabled = self.branchCombo.currentText() != "" |
64 |
65 |
65 enabled &= bool(self.fileEdit.text()) |
66 enabled &= bool(self.fileEdit.text()) |
66 |
67 |
67 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) |
68 self.buttonBox.button( |
|
69 QDialogButtonBox.StandardButton.Ok).setEnabled(enabled) |
68 |
70 |
69 @pyqtSlot(str) |
71 @pyqtSlot(str) |
70 def on_fileEdit_textChanged(self, txt): |
72 def on_fileEdit_textChanged(self, txt): |
71 """ |
73 """ |
72 Private slot to handle changes of the file edit. |
74 Private slot to handle changes of the file edit. |