diff options
author | Ken Moore <ken@ixsystems.com> | 2016-11-22 15:45:14 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-11-22 15:45:14 -0500 |
commit | 5bedc7e5673928ff0424da1b2719f0d75f62a8cf (patch) | |
tree | 219c665dd119e0ae7d1cf9dddc1be541240f1677 /src-qt5/desktop-utils/lumina-screenshot/ImageEditor.h | |
parent | Add better error notifications when saving screenshots. (diff) | |
download | lumina-5bedc7e5673928ff0424da1b2719f0d75f62a8cf.tar.gz lumina-5bedc7e5673928ff0424da1b2719f0d75f62a8cf.tar.bz2 lumina-5bedc7e5673928ff0424da1b2719f0d75f62a8cf.zip |
Fix up the scaling options in the UI for lumina-screenshot.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-screenshot/ImageEditor.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-screenshot/ImageEditor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-screenshot/ImageEditor.h b/src-qt5/desktop-utils/lumina-screenshot/ImageEditor.h index 58a16e56..869c49fc 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/ImageEditor.h +++ b/src-qt5/desktop-utils/lumina-screenshot/ImageEditor.h @@ -28,6 +28,8 @@ public: bool hasSelection(); QImage image(); + int getScalingValue(); + private: QImage fullIMG, scaledIMG; //Note: the aspect ratio between the two images must be preserved!! QSize defaultSize; //for loading new images @@ -53,6 +55,7 @@ private slots: void showMenu(); public slots: + void setScaling(int perc); //10% <--> 200% range is valid void scaleUp(int val = 10); //10% change by default void scaleDown(int val = 10); //10% change by default @@ -67,6 +70,6 @@ protected: signals: void selectionChanged(bool); //true if there is a selection - + void scaleFactorChanged(int); }; #endif |