From 524f434c91976d4b8e137569b09a71097cdb2738 Mon Sep 17 00:00:00 2001 From: "robert.brothers" Date: Mon, 27 Nov 2023 16:24:17 -0600 Subject: [PATCH] Removed duplicate keyboard shortcut. --- mapviz/include/mapviz/mapviz.h | 1 - mapviz/src/config_item.cpp | 1 - mapviz/src/mapviz.cpp | 4 ---- 3 files changed, 6 deletions(-) diff --git a/mapviz/include/mapviz/mapviz.h b/mapviz/include/mapviz/mapviz.h index 072b432a..fffa9314 100644 --- a/mapviz/include/mapviz/mapviz.h +++ b/mapviz/include/mapviz/mapviz.h @@ -51,7 +51,6 @@ #include #include #include -#include // ROS libraries #include diff --git a/mapviz/src/config_item.cpp b/mapviz/src/config_item.cpp index 0beee149..41b9925c 100644 --- a/mapviz/src/config_item.cpp +++ b/mapviz/src/config_item.cpp @@ -43,7 +43,6 @@ namespace mapviz edit_name_action_ = new QAction("Edit Name", this); duplicate_item_action_ = new QAction("Duplicate", this); - duplicate_item_action_->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_D)); remove_item_action_ = new QAction("Remove", this); remove_item_action_->setIcon(QIcon(":/images/remove-icon-th.png")); diff --git a/mapviz/src/mapviz.cpp b/mapviz/src/mapviz.cpp index 9efb1124..595fdfca 100644 --- a/mapviz/src/mapviz.cpp +++ b/mapviz/src/mapviz.cpp @@ -201,10 +201,6 @@ Mapviz::Mapviz(bool is_standalone, int argc, char** argv, QWidget *parent, Qt::W ui_.bg_color->setColor(background_); canvas_->SetBackground(background_); - - // Keyboard shortcuts for the main window - QShortcut *duplicate_display_shortcut = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_D), this); - connect(duplicate_display_shortcut, SIGNAL(activated()), this, SLOT(DuplicateDisplay())); } Mapviz::~Mapviz()