aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorq5sys <jt@obs-sec.com>2016-03-25 11:15:28 -0400
committerq5sys <jt@obs-sec.com>2016-03-25 11:15:28 -0400
commit9f8df4426f0b010786f20c7aa4172d156995982b (patch)
tree9c6323d796c2d518326b16f3f1728a34596f7f3b
parentUpdate MainUI.cpp (diff)
downloadlumina-9f8df4426f0b010786f20c7aa4172d156995982b.tar.gz
lumina-9f8df4426f0b010786f20c7aa4172d156995982b.tar.bz2
lumina-9f8df4426f0b010786f20c7aa4172d156995982b.zip
Update MainUI.cpp
condensed quicksave file name function
-rw-r--r--lumina-screenshot/MainUI.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lumina-screenshot/MainUI.cpp b/lumina-screenshot/MainUI.cpp
index d1522202..ced5193f 100644
--- a/lumina-screenshot/MainUI.cpp
+++ b/lumina-screenshot/MainUI.cpp
@@ -70,12 +70,8 @@ void MainUI::saveScreenshot(){
}
void MainUI::quicksave(){
QString savedir = QDir::homePath() + "/Pictures/";
- QDate date = QDate::currentDate();
- QString dateString = date.toString();
- QTime time = QTime::currentTime();
- QString timeString = time.toString();
- QString path = savedir + QString("Screenshot-[%1 - %2].png").arg(dateString).arg(timeString);
- cpic.save(path, "png");
+ QString path = savedir + QString( "Screenshot-%1.png" ).arg( QDateTime::currentDateTime().toString("yyyy-MM-dd-hh-mm-ss") );
+ cpic.save(path, "png");
}
void MainUI::editScreenshot(){
bgstack15