aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorq5sys <jt@obs-sec.com>2016-03-25 03:02:21 -0400
committerq5sys <jt@obs-sec.com>2016-03-25 03:02:21 -0400
commit623aae51c33ad3d3ac8a3f7b3f948ea1b472f95b (patch)
tree9d63a683f7d992111bc4b4596912b72a2be22c13
parentUpdate MainUI.cpp (diff)
downloadlumina-623aae51c33ad3d3ac8a3f7b3f948ea1b472f95b.tar.gz
lumina-623aae51c33ad3d3ac8a3f7b3f948ea1b472f95b.tar.bz2
lumina-623aae51c33ad3d3ac8a3f7b3f948ea1b472f95b.zip
Update MainUI.cpp
added editScreenshot
-rw-r--r--lumina-screenshot/MainUI.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/lumina-screenshot/MainUI.cpp b/lumina-screenshot/MainUI.cpp
index cd6e87e4..d1522202 100644
--- a/lumina-screenshot/MainUI.cpp
+++ b/lumina-screenshot/MainUI.cpp
@@ -30,7 +30,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){
connect(ui->actionquicksave, SIGNAL(triggered()), this, SLOT(quicksave()) );
connect(ui->actionQuit, SIGNAL(triggered()), this, SLOT(closeApplication()) );
connect(ui->actionNew, SIGNAL(triggered()), this, SLOT(startScreenshot()) );
-
+ connect(ui->actionEdit, SIGNAL(triggered()), this, SLOT(editScreenshot()) );
QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath()+"/.lumina");
settings = new QSettings("LuminaDE", "lumina-screenshot",this);
@@ -55,7 +55,7 @@ void MainUI::setupIcons(){
ui->actionquicksave->setIcon( LXDG::findIcon("document-save","") );
ui->actionQuit->setIcon( LXDG::findIcon("application-exit","") );
ui->actionNew->setIcon( LXDG::findIcon("camera-web","") );
-
+ ui->actionEdit->setIcon( LXDG::findIcon("edit-cut","") );
}
//==============
@@ -78,7 +78,11 @@ void MainUI::quicksave(){
cpic.save(path, "png");
}
-
+void MainUI::editScreenshot(){
+ QString tmppath = QString("/tmp/screenshot.png");
+ cpic.save(tmppath, "png");
+ QProcess::startDetached("gimp /tmp/screenshot.png ");
+}
void MainUI::startScreenshot(){
if( !getWindow() ){ return; }
bgstack15