From 7a84ca872c43a85a4a8c93afc061a1c8fc62e8b9 Mon Sep 17 00:00:00 2001 From: garak Date: Wed, 15 Jan 2020 20:44:01 -0500 Subject: [PATCH] toggle grid in map view with CTRL+G --- src/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8bda04e5..2b913435 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -73,6 +73,7 @@ void MainWindow::initWindow() { void MainWindow::initExtraShortcuts() { new QShortcut(QKeySequence("Ctrl+Shift+Z"), this, SLOT(redo())); new QShortcut(QKeySequence("Ctrl+0"), this, SLOT(resetMapViewScale())); + new QShortcut(QKeySequence("Ctrl+G"), ui->checkBox_ToggleGrid, SLOT(toggle())); ui->actionZoom_In->setShortcuts({QKeySequence("Ctrl++"), QKeySequence("Ctrl+=")}); }