Skip to content

Commit

Permalink
Removed duplicate keyboard shortcut.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjb0026 committed Nov 27, 2023
1 parent 4724abc commit 524f434
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion mapviz/include/mapviz/mapviz.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
#include <QWidget>
#include <QStringList>
#include <QMainWindow>
#include <QShortcut>

// ROS libraries
#include <ros/ros.h>
Expand Down
1 change: 0 additions & 1 deletion mapviz/src/config_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down
4 changes: 0 additions & 4 deletions mapviz/src/mapviz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 524f434

Please sign in to comment.