From 535786e25ab45858d01258df26e6bcff83efa20d Mon Sep 17 00:00:00 2001 From: Jerzy Kozera Date: Sun, 20 Jan 2013 20:52:26 +0000 Subject: [PATCH] Added Quit menu item and shortcut --- zeal/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zeal/mainwindow.cpp b/zeal/mainwindow.cpp index b63a22f..15de1ed 100644 --- a/zeal/mainwindow.cpp +++ b/zeal/mainwindow.cpp @@ -67,6 +67,10 @@ MainWindow::MainWindow(QWidget *parent) : // initialise ui ui->setupUi(this); + auto quitAction = ui->menuBar->addAction("&Quit"); + quitAction->setShortcut(QKeySequence::Quit); + connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit())); + ui->lineEdit->setTreeView(ui->treeView); ui->treeView->setModel(&zealList); ui->treeView->setColumnHidden(1, true);