aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-screenshot/MainUI.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-screenshot/MainUI.h')
-rw-r--r--src-qt5/desktop-utils/lumina-screenshot/MainUI.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.h b/src-qt5/desktop-utils/lumina-screenshot/MainUI.h
index 4a18ef74..a76ae19f 100644
--- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.h
+++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.h
@@ -42,7 +42,9 @@ public slots:
private:
Ui::MainUI *ui;
bool mousegrabbed, picSaved, closeOnSave;
- QRect lastgeom;
+ QRect lastgeom, snapArea;
+ QPoint pt_click; //used for area click/release mapping to a snapArea
+ QWidget *areaOverlay;
QString ppath; //previous file path
WId cwin; //current window to screenshot
QSettings *settings;
@@ -56,6 +58,8 @@ private:
void showSaveError(QString path);
+ QRect pointsToRect(QPoint pt1, QPoint pt2);
+
private slots:
//Button Slots
void closeApplication(){
@@ -79,6 +83,8 @@ private slots:
void getPixmap(); //set the "cpic" variable to the new screenshot
protected:
+ void mousePressEvent(QMouseEvent *ev);
+ void mouseMoveEvent(QMouseEvent *ev);
void mouseReleaseEvent(QMouseEvent *ev);
void resizeEvent(QResizeEvent *ev);
void closeEvent( QCloseEvent *ev);
bgstack15