From e5ae3fca7fce07b5415f66fab937420f07aa70c6 Mon Sep 17 00:00:00 2001 From: Sergey Starosek Date: Thu, 9 Jan 2014 19:21:28 +0200 Subject: [PATCH] Make Ctrl-F window shortcut The shortcut may be used elsewhere, e.g. in user manual Signed-off-by: Sergey Starosek Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index 9f5b0c0a7..d6331e8e2 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -42,7 +42,7 @@ DiveListView::DiveListView(QWidget *parent) : QTreeView(parent), mouseClickSelec header()->setStretchLastSection(true); QAction *showSearchBox = new QAction(tr("Show Search Box"), this); showSearchBox->setShortcut( Qt::CTRL + Qt::Key_F); - showSearchBox->setShortcutContext(Qt::ApplicationShortcut); + showSearchBox->setShortcutContext(Qt::WindowShortcut); addAction(showSearchBox); searchBox->installEventFilter(this);