MCPcopy Create free account
hub / github.com/YACReader/yacreader / closeEvent

Method closeEvent

YACReader/main_window_viewer.cpp:1532–1545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1530}
1531
1532void MainWindowViewer::closeEvent(QCloseEvent *event)
1533{
1534 if (isClient)
1535 sendComic();
1536
1537 viewer->save();
1538 Configuration &conf = Configuration::getConfiguration();
1539 // saveGeometry() encodes the current screen, the maximized/fullscreen state, and
1540 // the normal (pre-maximize) geometry in one blob, so restoreGeometry() puts the
1541 // window back on the right monitor in the right state regardless of how it was closed.
1542 conf.setGeometry(saveGeometry());
1543
1544 event->accept();
1545}
1546
1547void MainWindowViewer::openPreviousComic()
1548{

Callers

nothing calls this directly

Calls 2

setGeometryMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected