diff options
Diffstat (limited to 'MainApp.cpp')
| -rw-r--r-- | MainApp.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/MainApp.cpp b/MainApp.cpp new file mode 100644 index 00000000..4c10cad0 --- /dev/null +++ b/MainApp.cpp @@ -0,0 +1,14 @@ +#include "MainApp.h" +#include <QCloseEvent> + +bool MainApp::event (QEvent *event) +{ + // Catch application exit event and signal to qml app to handle exit + if(event->type() == QEvent::Close) { + event->ignore(); + emit closing(); + return true; + } + + return false; +} |
