| | |
| | | #include <QMessageBox> |
| | | #include <QDir> |
| | | #include <QFileDevice> |
| | | #include <QDesktopServices> |
| | | #include <QFileDialog> |
| | | |
| | | #include "noedititemdelegate.h" |
| | | |
| | | #pragma execution_character_set("utf-8") |
| | |
| | | hasContentRow++; |
| | | |
| | | // 需要将文件拷贝到id目录 |
| | | 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; |
| | |
| | | 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) |