diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-13 09:23:43 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-13 09:23:43 +0100 |
commit | 1d62458961d32524a686b3c88f599559d722b1cb (patch) | |
tree | 9cea8008351413cf594899ae4853c8ef36070df1 /variant/trackmouse/window.cpp | |
parent | 15375537ebafd5b4ff2a1dad6d496ae5f1e1fd5b (diff) |
variant/trackmouse: random flush
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(); +} + |