Fix tab order in new window
CHANGELOG
| 8 | 8 | * When an error occurs while fetching a project, an error message is shown and | |
| 9 | 9 | the new project window re-opens with the same details as before | |
| 10 | 10 | ||
| 11 | + | === UI Changes === | |
| 12 | + | ||
| 13 | + | * Fix tabulation order when creating and editing project settings | |
| 14 | + | * Add missing icon to the build result | |
| 15 | + | ||
| 11 | 16 | === Bug fixes === | |
| 12 | 17 | ||
| 13 | 18 | * Correctly pass application version to the gettext format | |
| 14 | 19 | * When editing a project, system specific fields were not shown | |
| 15 | 20 | * Unsupported formats raises a specific exception that can be caught by the UI | |
| 16 | - | * Add missing icon to the build result | |
| 17 | 21 | * Stop crashing when an error occurs during project fetching | |
| 18 | 22 | ||
| 19 | 23 | Changes since 0.2 |
offlate/ui/new.py
| 75 | 75 | self.langWidget.textChanged.connect(self.modify) | |
| 76 | 76 | ||
| 77 | 77 | hhbox = QHBoxLayout() | |
| 78 | - | cancel = QPushButton(self.tr("Cancel")) | |
| 78 | + | self.cancelbutton = QPushButton(self.tr("Cancel")) | |
| 79 | 79 | self.okbutton = QPushButton(self.tr("OK")) | |
| 80 | 80 | self.okbutton.setEnabled(False) | |
| 81 | - | hhbox.addWidget(cancel) | |
| 81 | + | hhbox.addWidget(self.cancelbutton) | |
| 82 | 82 | hhbox.addWidget(self.okbutton) | |
| 83 | 83 | contentbox.addWidget(formbox) | |
| 84 | 84 | contentbox.addLayout(hhbox) | |
… | |||
| 117 | 117 | self.setLayout(hbox) | |
| 118 | 118 | ||
| 119 | 119 | self.predefinedprojects.currentItemChanged.connect(self.fill) | |
| 120 | - | cancel.clicked.connect(self.close) | |
| 120 | + | self.cancelbutton.clicked.connect(self.close) | |
| 121 | 121 | self.okbutton.clicked.connect(self.ok) | |
| 122 | 122 | self.searchfield.textChanged.connect(self.filter) | |
| 123 | 123 | self.combo.currentIndexChanged.connect(self.othersystem) | |
… | |||
| 188 | 188 | widget['widget'].hide() | |
| 189 | 189 | widget['label'].hide() | |
| 190 | 190 | self.formLayout.invalidate() | |
| 191 | + | oldwidget = self.combo | |
| 191 | 192 | for widget in self.additionalFields[self.combo.currentIndex()]: | |
| 193 | + | self.setTabOrder(oldwidget, widget['widget']) | |
| 194 | + | oldwidget = widget['widget'] | |
| 192 | 195 | self.formLayout.addRow(widget['label'], widget['widget']) | |
| 193 | 196 | widget['widget'].show() | |
| 194 | 197 | widget['label'].show() | |
| 198 | + | self.setTabOrder(oldwidget, self.cancelbutton) | |
| 199 | + | self.setTabOrder(self.cancelbutton, self.okbutton) | |
| 195 | 200 | self.modify() | |