MCPcopy Create free account
hub / github.com/cc20110101/RedisView / closeEvent

Method closeEvent

src/RedisView/AppView/MainWindow.cpp:405–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405void MainWindow::closeEvent(QCloseEvent *e) {
406
407 if(_exitFlag == false && !this->isHidden()) {
408 e->ignore();
409 this->hide();
410 } else
411 e->accept();
412}
413
414void MainWindow::exit() {
415 int ret = QMessageBox::question(this, tr("确认"), tr("是否要退出系统?"));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected