From 278340e28b8fd4c610a25c4165a6447a2723f039 Mon Sep 17 00:00:00 2001 From: q5sys Date: Mon, 5 Jun 2017 12:09:40 -0400 Subject: add quit and open shortcuts to screenshot --- src-qt5/desktop-utils/lumina-screenshot/MainUI.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src-qt5/desktop-utils/lumina-screenshot/MainUI.h') diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.h b/src-qt5/desktop-utils/lumina-screenshot/MainUI.h index a76ae19f..91d4966f 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.h +++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.h @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -60,6 +61,8 @@ private: QRect pointsToRect(QPoint pt1, QPoint pt2); + QShortcut *quitShortcut, *openShortcut; + private slots: //Button Slots void closeApplication(){ @@ -82,6 +85,8 @@ private slots: bool getWindow(); //set the "cwin" variable as appropriate void getPixmap(); //set the "cpic" variable to the new screenshot + void on_quitShortcut_Triggered(); + protected: void mousePressEvent(QMouseEvent *ev); void mouseMoveEvent(QMouseEvent *ev); -- cgit