From 1bb61da9f048f9f86b412479e3f4d18adb1876f2 Mon Sep 17 00:00:00 2001
From: wumu <mayi@mayi.com>
Date: 星期五, 13 十二月 2024 23:39:41 +0800
Subject: [PATCH] 1213

---
 internal_system_v1/threemergeproblemlist.cpp |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/internal_system_v1/threemergeproblemlist.cpp b/internal_system_v1/threemergeproblemlist.cpp
index 7a94827..72b25cd 100644
--- a/internal_system_v1/threemergeproblemlist.cpp
+++ b/internal_system_v1/threemergeproblemlist.cpp
@@ -6,6 +6,9 @@
 #include <QMessageBox>
 #include <QDir>
 #include <QFileDevice>
+#include <QDesktopServices>
+#include <QFileDialog>
+
 #include "noedititemdelegate.h"
 
 #pragma execution_character_set("utf-8")
@@ -967,9 +970,9 @@
             hasContentRow++;
 
             // 闇�瑕佸皢鏂囦欢鎷疯礉鍒癷d鐩綍
-            QString fpath = ui->tableWidget->item(i,13)->text();
-            QString spath = ui->tableWidget->item(i,17)->text();
-            QString tpath = ui->tableWidget->item(i,23)->text();
+            QString fpath = ui->tableWidget->item(i,13+2)->text();
+            QString spath = ui->tableWidget->item(i,17+2)->text();
+            QString tpath = ui->tableWidget->item(i,23+2)->text();
             QString fid = ui->tableWidget->item(i,0)->text();
             QString proName = ui->tableWidget->item(i,7)->text(); // 椤圭洰鍚嶇О
             qDebug()<<"鎷疯礉鏂囦欢:"<<fid<<proName<<fpath;
@@ -1138,6 +1141,14 @@
             qDebug()<<item_23->text();
         }
     }
+
+    // 浠ョ郴缁熼粯璁ょ殑鏂瑰紡鎵撳紑鎸囧畾鐨勬枃浠�
+    QUrl file_path = QFileDialog::getOpenFileUrl();
+    if(QDesktopServices::openUrl(file_path)){
+        qDebug()<<"open ok:"<<file_path;
+    }else{
+        qDebug()<<"open fail:"<<file_path;
+    }
 }
 
 void ThreeMergeProblemList::updateComboList(QMap<QString, ComInfo> & nameAndComInfos)

--
Gitblit v1.8.0