diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2016-06-29 19:45:50 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2016-06-30 14:19:52 +0000 |
commit | 085a5bb3fccbe6cc1f47e10d6232e54438dae7b4 (patch) | |
tree | d4122f5abab4dfb544164c218804fcde742a1e87 /examples/serialbus/can/mainwindow.h | |
parent | 94c64856be9af05d8459ad9fc16e6c95baa2c737 (diff) |
CAN-Example: Close connect dialog on exit
Before, the connect dialog stayed open
when the main window was already closed.
Change-Id: I36734ab4ed4cea9e6e4c7a7ead11bb382b828f21
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples/serialbus/can/mainwindow.h')
-rw-r--r-- | examples/serialbus/can/mainwindow.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/serialbus/can/mainwindow.h b/examples/serialbus/can/mainwindow.h index aff6c94..de4d442 100644 --- a/examples/serialbus/can/mainwindow.h +++ b/examples/serialbus/can/mainwindow.h @@ -74,6 +74,9 @@ private Q_SLOTS: void disconnectDevice(); void framesWritten(qint64); +protected: + void closeEvent(QCloseEvent *event); + private: void showStatusMessage(const QString &message); void initActionsConnections(); |