| 650 | } |
| 651 | |
| 652 | void MainWindow::timerSleepTimeout() { |
| 653 | qint64 timeNow = QDateTime::currentMSecsSinceEpoch(); |
| 654 | if (timeLastWatcherInterval == 0) { |
| 655 | timeLastWatcherInterval = timeNow; |
| 656 | return; |
| 657 | } |
| 658 | qint64 msecsSinceTimeout = timeNow - timeLastWatcherInterval; |
| 659 | timeLastWatcherInterval = timeNow; |
| 660 | if (msecsSinceTimeout > timerSleepWatcher.interval() + 5000) { |
| 661 | // Went to sleep for at least 5 seconds |
| 662 | operate.handleWakeEvent(); |
| 663 | } |
| 664 | } |
| 665 | |
| 666 | void MainWindow::on_bestMobilityRadioButton_toggled(bool checked) { |
| 667 | if (checked) |
nothing calls this directly
no test coverage detected