From 30e78591c571ffcb71d3ffac191b50b0ce016529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 2 Feb 2016 23:13:08 +0100 Subject: [PATCH] Some more shortcuts --- src/gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui.cpp b/src/gui.cpp index c429f33e..795eca01 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -170,12 +170,14 @@ void GUI::createActions() _showPOIAction = new QAction(QIcon(QPixmap(SHOW_POI_ICON)), tr("Show POIs"), this); _showPOIAction->setCheckable(true); + _showPOIAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_P)); connect(_showPOIAction, SIGNAL(triggered(bool)), this, SLOT(showPOI(bool))); // Map actions _showMapAction = new QAction(QIcon(QPixmap(SHOW_MAP_ICON)), tr("Show map"), this); _showMapAction->setCheckable(true); + _showMapAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_M)); connect(_showMapAction, SIGNAL(triggered(bool)), this, SLOT(showMap(bool))); if (_maps.empty()) _showMapAction->setEnabled(false); @@ -186,6 +188,7 @@ void GUI::createActions() _showGraphsAction = new QAction(tr("Show graphs"), this); _showGraphsAction->setCheckable(true); _showGraphsAction->setChecked(true); + _showGraphsAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_G)); connect(_showGraphsAction, SIGNAL(triggered(bool)), this, SLOT(showGraphs(bool))); _showToolbarsAction = new QAction(tr("Show toolbars"), this);