----------------------------------------------------------------------------
| 306 | } |
| 307 | //---------------------------------------------------------------------------- |
| 308 | void InputConfDialog_t::updatePortLabels(void) |
| 309 | { |
| 310 | |
| 311 | for (int i = 0; i < 2; i++) |
| 312 | { |
| 313 | getInputSelection(i, &curNesInput[i], &usrNesInput[i]); |
| 314 | |
| 315 | for (int j = 0; j < nesPortComboxBox[i]->count(); j++) |
| 316 | { |
| 317 | if (nesPortComboxBox[i]->itemData(j).toInt() == curNesInput[i]) |
| 318 | { |
| 319 | nesPortLabel[i]->setText(nesPortComboxBox[i]->itemText(j)); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | nesPortConfButton[i]->setEnabled(curNesInput[i] == SI_GAMEPAD); |
| 324 | } |
| 325 | |
| 326 | getInputSelection(2, &curNesInput[2], &usrNesInput[2]); |
| 327 | |
| 328 | for (int j = 0; j < expPortComboxBox->count(); j++) |
| 329 | { |
| 330 | if (expPortComboxBox->itemData(j).toInt() == curNesInput[2]) |
| 331 | { |
| 332 | expPortLabel->setText(expPortComboxBox->itemText(j)); |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | expPortConfButton->setEnabled( curNesInput[2] == SIFC_FKB ); |
| 337 | } |
| 338 | //---------------------------------------------------------------------------- |
| 339 | void InputConfDialog_t::updatePortComboBoxes(void) |
| 340 | { |
nothing calls this directly
no test coverage detected