MCPcopy Create free account
hub / github.com/QNapi/qnapi / closeEvent

Method closeEvent

gui/src/forms/frmscan.cpp:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void frmScan::closeEvent(QCloseEvent *event) {
87 if (scanThread.isRunning()) {
88 scanThread.requestAbort();
89 scanThread.wait();
90 }
91
92 event->accept();
93}
94
95void frmScan::keyPressEvent(QKeyEvent *event) {
96 if (event->key() == Qt::Key_Escape) close();

Callers

nothing calls this directly

Calls 2

requestAbortMethod · 0.80
acceptMethod · 0.45

Tested by

no test coverage detected