| 537 | } |
| 538 | |
| 539 | void MainWindow::onOpenSettings() |
| 540 | { |
| 541 | DlgSettings* dlg = new DlgSettings(this); |
| 542 | int dlgResult = dlg->exec(); |
| 543 | delete dlg; |
| 544 | if (dlgResult == QDialog::Accepted) |
| 545 | { |
| 546 | m_scanner->getUpdateTimer()->stop(); |
| 547 | m_watcher->getUpdateTimer()->stop(); |
| 548 | m_watcher->getFreezeTimer()->stop(); |
| 549 | m_viewer->getUpdateTimer()->stop(); |
| 550 | if (DolphinComm::DolphinAccessor::getStatus() == |
| 551 | DolphinComm::DolphinAccessor::DolphinStatus::hooked) |
| 552 | { |
| 553 | m_scanner->getUpdateTimer()->start(SConfig::getInstance().getScannerUpdateTimerMs()); |
| 554 | m_watcher->getUpdateTimer()->start(SConfig::getInstance().getWatcherUpdateTimerMs()); |
| 555 | m_watcher->getFreezeTimer()->start(SConfig::getInstance().getFreezeTimerMs()); |
| 556 | m_viewer->getUpdateTimer()->start(SConfig::getInstance().getViewerUpdateTimerMs()); |
| 557 | } |
| 558 | m_scanner->setShowThreshold( |
| 559 | static_cast<size_t>(SConfig::getInstance().getScannerShowThreshold())); |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | void MainWindow::onAbout() |
| 564 | { |
nothing calls this directly
no test coverage detected