Add keybindings to tab context menu items (#3265)
Co-authored-by: Paweł <zneix@zneix.eu>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user