diff options
Diffstat (limited to 'variant/trackmouse/window.cpp')
-rw-r--r-- | variant/trackmouse/window.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/variant/trackmouse/window.cpp b/variant/trackmouse/window.cpp new file mode 100644 index 00000000..7566f6ca --- /dev/null +++ b/variant/trackmouse/window.cpp @@ -0,0 +1,18 @@ +#include "window.hpp" + +#include <QApplication> + +void window::closeEvent(QCloseEvent* e) +{ + e->accept(); + QApplication::exit(0); +} + +window::window() : QMainWindow() +{ + ui.setupUi(this); + setAttribute(Qt::WA_QuitOnClose); + + show(); +} + |