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+=")}); }