mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-26 07:37:15 +03:00
Added Quit menu item and shortcut
This commit is contained in:
parent
88011d5009
commit
535786e25a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user