# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2015-06-23 08:00:51 # Node ID 882842ce0980cad5bfe383231aa43646ad0b59e8 # Parent 362c6d844fe303a945f6d12b236e19ad9fb20232 added quit menu item and shortcut diff --git a/mainwindow.cpp b/mainwindow.cpp --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -55,6 +55,9 @@ MainWindow::MainWindow(QWidget *parent) QObject::connect(ui->actionExportCsv, &QAction::triggered, this, &MainWindow::onExportCsv); + QObject::connect(ui->actionQuit, &QAction::triggered, + this, &MainWindow::close); + QObject::connect(&portControl, &PortControl::portToggled, this, &MainWindow::onPortToggled); diff --git a/mainwindow.ui b/mainwindow.ui --- a/mainwindow.ui +++ b/mainwindow.ui @@ -466,6 +466,8 @@ File + + @@ -524,6 +526,14 @@ Export plot data to CSV + + + Quit + + + Ctrl+Q + +