|
@@ -59,8 +59,9 @@ Home::Home(QWidget *parent) :
|
|
|
|
|
|
|
|
|
void Home::captureScreen() {
|
|
|
+ QString picPath = QStandardPaths::writableLocation(QStandardPaths::PicturesLocation);
|
|
|
QScreen *screen = QGuiApplication::primaryScreen();
|
|
|
- QString filePathName = "timeManager_screencap.jpg";
|
|
|
+ QString filePathName = picPath + "/timeManager_screencap.jpg";
|
|
|
QFile oldFile(filePathName);
|
|
|
if (oldFile.exists()) {
|
|
|
QImage oldImg(filePathName);
|