MCPcopy Create free account
hub / github.com/dmitry-s93/MControlCenter / timerSleepTimeout

Method timerSleepTimeout

src/mainwindow.cpp:652–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652void 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
666void MainWindow::on_bestMobilityRadioButton_toggled(bool checked) {
667 if (checked)

Callers

nothing calls this directly

Calls 1

handleWakeEventMethod · 0.80

Tested by

no test coverage detected