| 388 | } |
| 389 | |
| 390 | void ProgressDialog::show() |
| 391 | { |
| 392 | if(m_progressDelayTimer) |
| 393 | killTimer(m_progressDelayTimer); |
| 394 | if(m_delayedHideTimer) |
| 395 | killTimer(m_delayedHideTimer); |
| 396 | m_progressDelayTimer = 0; |
| 397 | m_delayedHideTimer = 0; |
| 398 | if(parentWidget() == nullptr || parentWidget()->isVisible()) |
| 399 | { |
| 400 | QDialog::show(); |
| 401 | } |
| 402 | } |
| 403 | |
| 404 | void ProgressDialog::hide() |
| 405 | { |
no outgoing calls
no test coverage detected