kopia lustrzana https://gitlab.com/Teuniz/DSRemote
Merge pull request #22 from momu/add-print-shortcut
Add print shortcut to main window.merge-requests/1/head
commit
cca2aa0293
|
@ -1964,6 +1964,7 @@ void UI_Mainwindow::show_howto_operate()
|
|||
"Press 'c' to center the horizontal position.\n"
|
||||
"Press 't' to center the trigger position.\n"
|
||||
"Press 'f' to toggle FFT.\n"
|
||||
"Press 'p' to save a screenshot.\n"
|
||||
);
|
||||
|
||||
msgBox.exec();
|
||||
|
|
|
@ -231,7 +231,8 @@ private:
|
|||
*select_chan4_act,
|
||||
*toggle_fft_act,
|
||||
*center_trigger_act,
|
||||
*center_position_act;
|
||||
*center_position_act,
|
||||
*save_screenshot_act;
|
||||
|
||||
struct tmcdev *device;
|
||||
|
||||
|
|
|
@ -509,6 +509,11 @@ UI_Mainwindow::UI_Mainwindow()
|
|||
toggle_fft_act = new QAction(this);
|
||||
toggle_fft_act->setShortcut(QKeySequence("f"));
|
||||
addAction(toggle_fft_act);
|
||||
|
||||
save_screenshot_act = new QAction(this);
|
||||
save_screenshot_act->setShortcut(QKeySequence("p"));
|
||||
connect(save_screenshot_act, SIGNAL(triggered()), this, SLOT(save_screenshot()));
|
||||
addAction(save_screenshot_act);
|
||||
|
||||
DPRwidget->setEnabled(false);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue