瀏覽代碼

Merge remote-tracking branch 'origin/master'

ZhouRuiTing 5 年之前
父節點
當前提交
bed906126a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      fhKeeper/formulahousekeeper/mywork/home.cpp

+ 2 - 1
fhKeeper/formulahousekeeper/mywork/home.cpp

@@ -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);