mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Add default shortcut "/" for opening filter panel
Summary: Add default shortcut "/" for opening filter panel. FEATURE: 156381 Reviewers: #dolphin, ngraham Reviewed By: #dolphin, ngraham Subscribers: ngraham, #dolphin Tags: #dolphin Differential Revision: https://phabricator.kde.org/D10961
This commit is contained in:
parent
e46421bfee
commit
bf0d259ae5
|
@ -1166,7 +1166,7 @@ void DolphinMainWindow::setupActions()
|
|||
QAction* showFilterBar = actionCollection()->addAction(QStringLiteral("show_filter_bar"));
|
||||
showFilterBar->setText(i18nc("@action:inmenu Tools", "Show Filter Bar"));
|
||||
showFilterBar->setIcon(QIcon::fromTheme(QStringLiteral("view-filter")));
|
||||
actionCollection()->setDefaultShortcut(showFilterBar, Qt::CTRL | Qt::Key_I);
|
||||
actionCollection()->setDefaultShortcuts(showFilterBar, {Qt::CTRL + Qt::Key_I, Qt::Key_Slash});
|
||||
connect(showFilterBar, &QAction::triggered, this, &DolphinMainWindow::showFilterBar);
|
||||
|
||||
QAction* compareFiles = actionCollection()->addAction(QStringLiteral("compare_files"));
|
||||
|
|
Loading…
Reference in a new issue