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

Method slotTimeOut

App/Client/mainwindow.cpp:1913–1939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1911}
1912
1913void MainWindow::slotTimeOut()
1914{
1915 //qDebug(log) << Q_FUNC_INFO;
1916 auto pWin = m_pView->GetCurrentView();
1917 if(!pWin) {
1918 qDebug(log) << "The current view is empty";
1919 return;
1920 }
1921 foreach(auto p, m_Operates)
1922 {
1923 if(p->GetViewer() == pWin)
1924 {
1925 auto pStats = p->GetStats();
1926 if(!pStats) {
1927 SetStatsVisible(false);
1928 break;
1929 }
1930 SetStatsVisible(true);
1931 pStats->slotCalculating();
1932 m_TotalSends.setText("⇈ " + pStats->TotalSends());
1933 m_TotalReceives.setText("⇊ " + pStats->TotalReceives());
1934 m_SendRate.setText("↑ " + pStats->SendRate());
1935 m_ReceivesRate.setText("↓ " + pStats->ReceiveRate());
1936 break;
1937 }
1938 }
1939}
1940
1941void MainWindow::on_actionUser_manual_triggered()
1942{

Callers

nothing calls this directly

Calls 1

GetCurrentViewMethod · 0.45

Tested by

no test coverage detected