Add keybindings to tab context menu items (#3265)

Co-authored-by: Paweł <zneix@zneix.eu>
This commit is contained in:
Tal Neoran
2021-10-09 19:09:11 +03:00
committed by GitHub
parent fa5a9fe831
commit d8aa232df9
2 changed files with 18 additions and 9 deletions
+6 -3
View File
@@ -36,9 +36,12 @@ Notebook::Notebook(QWidget *parent)
this->addButton_->setHidden(true);
this->menu_.addAction("Toggle visibility of tabs", [this]() {
this->setShowTabs(!this->getShowTabs());
});
this->menu_.addAction(
"Toggle visibility of tabs",
[this]() {
this->setShowTabs(!this->getShowTabs());
},
QKeySequence("Ctrl+U"));
}
NotebookTab *Notebook::addPage(QWidget *page, QString title, bool select)