| 164 | } |
| 165 | |
| 166 | void frmOptions::twEnginesItemChanged(QTableWidgetItem *item) { |
| 167 | bool foundActive = false; |
| 168 | |
| 169 | for (int i = 0; i < ui.twEngines->rowCount(); ++i) { |
| 170 | if (!ui.twEngines->item(i, 0)) { |
| 171 | return; |
| 172 | } |
| 173 | |
| 174 | if (ui.twEngines->item(i, 0)->checkState() == Qt::Checked) { |
| 175 | foundActive = true; |
| 176 | break; |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | if (!foundActive) { |
| 181 | item->setCheckState(Qt::Checked); |
| 182 | QMessageBox::warning( |
| 183 | this, tr("Warning"), |
| 184 | tr("At least one subtitles engine must remain active!")); |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | void frmOptions::pbMoveUpClicked() { |
| 189 | int currentRow = ui.twEngines->row(ui.twEngines->selectedItems().at(0)); |
nothing calls this directly
no outgoing calls
no test coverage detected