| 1911 | } |
| 1912 | |
| 1913 | void 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 | |
| 1941 | void MainWindow::on_actionUser_manual_triggered() |
| 1942 | { |
nothing calls this directly
no test coverage detected