Skip to content

Commit 63c338c

Browse files
committed
plot: add another shortcut to plot CTRL+D
if we maybe have print support in the future, we can assign CTRL+P to print than
1 parent 681b143 commit 63c338c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/MainWindow.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ void MainWindow::init()
115115

116116
// Add menu item for plot dock
117117
ui->viewMenu->insertAction(ui->viewDBToolbarAction, ui->dockPlot->toggleViewAction());
118-
ui->viewMenu->actions().at(1)->setShortcut(QKeySequence(tr("Ctrl+P")));
118+
QList<QKeySequence> plotkeyseqlist;
119+
plotkeyseqlist << QKeySequence(tr("Ctrl+P")) << QKeySequence(tr("Ctrl+D"));
120+
ui->viewMenu->actions().at(1)->setShortcuts(plotkeyseqlist);
119121
ui->viewMenu->actions().at(1)->setIcon(QIcon(":/icons/log_dock"));
120122

121123
// Add menu item for schema dock

0 commit comments

Comments
 (0)