MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / StartTimer

Method StartTimer

App/Client/mainwindow.cpp:1894–1911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1892}
1893
1894void MainWindow::StartTimer()
1895{
1896 bool bStart = false;
1897 int nMinInterval = 1;
1898 foreach(auto o, m_Operates) {
1899 if(o && o->GetStats()) {
1900 nMinInterval = qMin(nMinInterval, o->GetStats()->GetInterval());
1901 bStart = true;
1902 }
1903 }
1904 if(bStart) {
1905 m_Timer.start(nMinInterval * 1000);
1906 //qDebug(log) << "Time interval:" << nMinInterval;
1907 } else {
1908 m_Timer.stop();
1909 SetStatsVisible(false);
1910 }
1911}
1912
1913void MainWindow::slotTimeOut()
1914{

Callers

nothing calls this directly

Calls 2

startMethod · 0.80
stopMethod · 0.80

Tested by

no test coverage detected