Added Quit menu item and shortcut

This commit is contained in:
Jerzy Kozera 2013-01-20 20:52:26 +00:00
parent 88011d5009
commit 535786e25a

View File

@ -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);