kopia lustrzana https://gitlab.com/Teuniz/DSRemote
Changed screenshot short-cut to ctrl+p.
rodzic
cca2aa0293
commit
e00d6fc6b9
2
global.h
2
global.h
|
@ -35,7 +35,7 @@
|
|||
|
||||
|
||||
#define PROGRAM_NAME "DSRemote"
|
||||
#define PROGRAM_VERSION "0.35_1710192141"
|
||||
#define PROGRAM_VERSION "0.35_1710192207"
|
||||
|
||||
#define MAX_PATHLEN 4096
|
||||
|
||||
|
|
|
@ -1964,7 +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"
|
||||
"Press 'ctrl+p' to save a screenshot.\n"
|
||||
);
|
||||
|
||||
msgBox.exec();
|
||||
|
|
|
@ -509,9 +509,9 @@ 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"));
|
||||
save_screenshot_act->setShortcut(QKeySequence::Print);
|
||||
connect(save_screenshot_act, SIGNAL(triggered()), this, SLOT(save_screenshot()));
|
||||
addAction(save_screenshot_act);
|
||||
|
||||
|
|
|
@ -38,9 +38,6 @@ void UI_Mainwindow::save_screenshot()
|
|||
opath[MAX_PATHLEN];
|
||||
|
||||
QPainter painter;
|
||||
#if QT_VERSION >= 0x050000
|
||||
painter.setRenderHint(QPainter::Qt4CompatiblePainting, true);
|
||||
#endif
|
||||
|
||||
QPainterPath path;
|
||||
|
||||
|
@ -101,6 +98,9 @@ void UI_Mainwindow::save_screenshot()
|
|||
if(devparms.modelserie == 1)
|
||||
{
|
||||
painter.begin(&screenXpm);
|
||||
#if QT_VERSION >= 0x050000
|
||||
painter.setRenderHint(QPainter::Qt4CompatiblePainting, true);
|
||||
#endif
|
||||
|
||||
painter.fillRect(0, 0, 80, 29, Qt::black);
|
||||
|
||||
|
@ -113,6 +113,9 @@ void UI_Mainwindow::save_screenshot()
|
|||
else if(devparms.modelserie == 6)
|
||||
{
|
||||
painter.begin(&screenXpm);
|
||||
#if QT_VERSION >= 0x050000
|
||||
painter.setRenderHint(QPainter::Qt4CompatiblePainting, true);
|
||||
#endif
|
||||
|
||||
painter.fillRect(0, 0, 95, 29, QColor(48, 48, 48));
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue