| 433 | } |
| 434 | |
| 435 | void PrefsDialog::initPathAndToolLists() |
| 436 | { |
| 437 | binPathList->clear(); |
| 438 | toolList->clear(); |
| 439 | binPathList->addItems(TWApp::instance()->getPrefsBinaryPaths()); |
| 440 | engineList = TWApp::instance()->getEngineList(); |
| 441 | foreach (Engine e, engineList) { |
| 442 | toolList->addItem(e.name()); |
| 443 | defaultTool->addItem(e.name()); |
| 444 | if (e.name() == TWApp::instance()->getDefaultEngine().name()) |
| 445 | defaultTool->setCurrentIndex(defaultTool->count() - 1); |
| 446 | } |
| 447 | if (binPathList->count() > 0) |
| 448 | binPathList->setCurrentItem(binPathList->item(0)); |
| 449 | if (toolList->count() > 0) |
| 450 | toolList->setCurrentItem(toolList->item(0)); |
| 451 | updatePathButtons(); |
| 452 | updateToolButtons(); |
| 453 | } |
| 454 | |
| 455 | const int kSystemLocaleIndex = 0; |
| 456 | const int kEnglishLocaleIndex = 1; |
no test coverage detected