MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / event

Method event

nixnote.cpp:2917–2935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2915//}
2916
2917bool NixNote::event(QEvent *event) {
2918
2919 if (event->type() == QEvent::WindowStateChange && isMinimized()) {
2920 if (minimizeToTray) {
2921 hide();
2922 return false;
2923 }
2924 }
2925
2926 if (event->type() == QEvent::Close) {
2927 if (closeToTray && isVisible()) {
2928 QLOG_DEBUG() << "overriding close event";
2929 this->toggleVisible();
2930 event->ignore();
2931 return false;
2932 }
2933 }
2934 return QMainWindow::event(event);
2935}
2936
2937
2938

Callers

nothing calls this directly

Calls 2

toggleVisibleMethod · 0.95
typeMethod · 0.80

Tested by

no test coverage detected