From b135d1133c90172f9af9c33b0477c30b1f21e442 Mon Sep 17 00:00:00 2001 From: "robert.brothers" Date: Sun, 11 Aug 2024 13:24:15 -0500 Subject: [PATCH] Added Ctrl + N shortcut for adding new plugin. --- mapviz/src/mapviz.cpp | 4 ++-- mapviz/ui/mapviz.ui | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mapviz/src/mapviz.cpp b/mapviz/src/mapviz.cpp index 43a252e84..d6794b315 100644 --- a/mapviz/src/mapviz.cpp +++ b/mapviz/src/mapviz.cpp @@ -233,12 +233,12 @@ Mapviz::Mapviz(bool is_standalone, int argc, char** argv, QWidget *parent, Qt::W canvas_->SetBackground(background_); // Keyboard shortcuts for the main window - /* QShortcut * edit_display_name_shortcut = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_R), this); */ - /* connect(edit_display_name_shortcut, SIGNAL(activated()), this, SLOT()); */ QShortcut * remove_display_shortcut = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_X), this); connect(remove_display_shortcut, SIGNAL(activated()), this, SLOT(RemoveDisplay())); QShortcut * rename_display_shortcut = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_R), this); connect(rename_display_shortcut, SIGNAL(activated()), this, SLOT(RenameDisplay())); + QShortcut * add_display_shortcut = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_N), this); + connect(add_display_shortcut, SIGNAL(activated()), this, SLOT(SelectNewDisplay())); } Mapviz::~Mapviz() diff --git a/mapviz/ui/mapviz.ui b/mapviz/ui/mapviz.ui index f0b89fa14..370da3daa 100644 --- a/mapviz/ui/mapviz.ui +++ b/mapviz/ui/mapviz.ui @@ -311,7 +311,7 @@ - Add a new display + Add a new display (Ctrl + N) Add @@ -327,7 +327,7 @@ - Remove the selected display + Remove the selected display (Ctrl + X) Remove