MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / closeEvent

Method closeEvent

DSView/pv/mainframe.cpp:298–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void MainFrame::closeEvent(QCloseEvent *event)
299{
300 writeSettings();
301
302 if (_mainWindow->able_to_close()){
303
304#ifdef _WIN32
305 if (_parentNativeWidget != NULL){
306 _parentNativeWidget->SetChildWidget(NULL);
307 setVisible(false);
308 _parentNativeWidget->Show(false);
309 }
310#endif
311
312 event->accept();
313 }
314 else{
315 event->ignore();
316 }
317}
318
319void MainFrame::unfreezing()
320{

Callers

nothing calls this directly

Calls 5

able_to_closeMethod · 0.80
SetChildWidgetMethod · 0.80
ignoreMethod · 0.80
ShowMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected