aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-screenshot/MainUI.h
diff options
context:
space:
mode:
authorq5sys <jt@obs-sec.com>2017-06-05 12:09:40 -0400
committerq5sys <jt@obs-sec.com>2017-06-05 12:09:40 -0400
commit278340e28b8fd4c610a25c4165a6447a2723f039 (patch)
treed373e7c6ac5cc625d6af1df646ed84bf25a0299c /src-qt5/desktop-utils/lumina-screenshot/MainUI.h
parentmore work on autoextract functionality (diff)
downloadlumina-278340e28b8fd4c610a25c4165a6447a2723f039.tar.gz
lumina-278340e28b8fd4c610a25c4165a6447a2723f039.tar.bz2
lumina-278340e28b8fd4c610a25c4165a6447a2723f039.zip
add quit and open shortcuts to screenshot
Diffstat (limited to 'src-qt5/desktop-utils/lumina-screenshot/MainUI.h')
-rw-r--r--src-qt5/desktop-utils/lumina-screenshot/MainUI.h5
1 files changed, 5 insertions, 0 deletions
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 <QAction>
#include <QScreen>
#include <QTabBar>
+#include <QShortcut>
#include <LuminaXDG.h>
#include <LUtils.h>
@@ -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);
bgstack15