From fcd87f2ad155eaab7cc8e313c0720b727644130d Mon Sep 17 00:00:00 2001 From: Alexandru Csete Date: Sun, 24 Jan 2016 16:39:15 +0100 Subject: [PATCH] Add shortcuts to view/hide dock widgets. --- resources/news.txt | 4 ++++ src/applications/gqrx/mainwindow.cpp | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/resources/news.txt b/resources/news.txt index 7b727a13..4f9bec4b 100644 --- a/resources/news.txt +++ b/resources/news.txt @@ -1,3 +1,7 @@ + 2.5.3: TBD... + + IMPROVED: Shortcuts for view/hide some of the dock widgets. + 2.5.2: Released Januar 21, 2016. NEW: Support for Red Pitaya (RX only). diff --git a/src/applications/gqrx/mainwindow.cpp b/src/applications/gqrx/mainwindow.cpp index e1f823c7..e776341a 100644 --- a/src/applications/gqrx/mainwindow.cpp +++ b/src/applications/gqrx/mainwindow.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -127,6 +128,13 @@ MainWindow::MainWindow(const QString cfgfile, bool edit_conf, QWidget *parent) : Bookmarks::Get().setConfigDir(m_cfg_dir); uiDockBookmarks = new DockBookmarks(this); + // setup some toggle view shortcuts + uiDockInputCtl->toggleViewAction()->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_J)); + uiDockRxOpt->toggleViewAction()->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_R)); + uiDockFft->toggleViewAction()->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_F)); + uiDockAudio->toggleViewAction()->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_A)); + uiDockBookmarks->toggleViewAction()->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_B)); + setCorner( Qt::TopLeftCorner, Qt::LeftDockWidgetArea ); setCorner( Qt::TopRightCorner, Qt::RightDockWidgetArea ); setCorner( Qt::BottomLeftCorner, Qt::BottomDockWidgetArea );