| 436 | } |
| 437 | |
| 438 | void PreviewDialog::timerEvent(QTimerEvent *event) |
| 439 | { |
| 440 | if (mAutoclose == 0) { |
| 441 | if (mAutocloseAction == 0) { |
| 442 | emit acceptAll(); |
| 443 | } else if (mAutocloseAction == 1) { |
| 444 | emit uploadAll(); |
| 445 | } else { |
| 446 | emit rejectAll(); |
| 447 | } |
| 448 | } else if (mAutoclose < 0) { |
| 449 | killTimer(event->timerId()); |
| 450 | } else { |
| 451 | setWindowTitle(tr("Preview: Closing in %1").arg(mAutoclose)); |
| 452 | mAutoclose--; |
| 453 | } |
| 454 | } |
| 455 |
nothing calls this directly
no outgoing calls
no test coverage detected