From 47acbc19f7f321f70d6acd7c2e6dbf650bc77cfe Mon Sep 17 00:00:00 2001 From: Tobias Hammer Date: Thu, 14 Jul 2022 14:48:52 +0200 Subject: [PATCH] Add filter shortcut --- src/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a25a09ed..01a0fc16 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -495,6 +495,12 @@ void MainWindow::initView() applyConfig->setShortcut(Qt::Key_C | Qt::SHIFT | Qt::CTRL); connect(applyConfig, SIGNAL(triggered()), this, SLOT(on_applyConfig_clicked())); addAction(applyConfig); + + /* Add shortcut to add filter */ + QAction *addFilter = new QAction(this); + addFilter->setShortcut(Qt::Key_A | Qt::SHIFT | Qt::CTRL); + connect(addFilter, SIGNAL(triggered()), this, SLOT(on_action_menuFilter_Add_triggered())); + addAction(addFilter); } void MainWindow::initSignalConnections()