MCPcopy Create free account
hub / github.com/ckaiser/Lightscreen / timerEvent

Method timerEvent

dialogs/previewdialog.cpp:438–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected