Skip to content

Commit

Permalink
Added Ctrl + N shortcut for adding new plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjb0026 committed Aug 11, 2024
1 parent faebb5a commit b135d11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mapviz/src/mapviz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions mapviz/ui/mapviz.ui
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
</size>
</property>
<property name="toolTip">
<string>Add a new display</string>
<string>Add a new display (Ctrl + N)</string>
</property>
<property name="text">
<string>Add</string>
Expand All @@ -327,7 +327,7 @@
</size>
</property>
<property name="toolTip">
<string>Remove the selected display</string>
<string>Remove the selected display (Ctrl + X)</string>
</property>
<property name="text">
<string>Remove</string>
Expand Down

0 comments on commit b135d11

Please sign in to comment.