diff options
Diffstat (limited to 'lumina-screenshot/MainUI.cpp')
-rw-r--r-- | lumina-screenshot/MainUI.cpp | 8 |
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(){ |