修改了FEKO回波导入数据qDebug输出
parent
6b82740922
commit
1923492cbe
|
@ -7,6 +7,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <iostream>
|
||||
#include <QString>
|
||||
#include <memory>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <QStandardItemModel>
|
||||
|
@ -378,7 +379,7 @@ int FEKOResultImport::AddFekoResultClick()
|
|||
std::vector<int> deleteRowids(0);
|
||||
for (int i = 0; i < sourcelist.count(); i++) {
|
||||
deleteRowids.push_back(sourcelist[i].row());
|
||||
qDebug() << ("deletaRowids add :"+QString::number(sourcelist[i].row())+"\n");
|
||||
// qDebug() << ("deletaRowids add :"+QString::number(sourcelist[i].row())+"\n");
|
||||
}
|
||||
std::sort(deleteRowids.begin(), deleteRowids.end());
|
||||
for (int i = deleteRowids.size() - 1; i >= 0; i--) {
|
||||
|
@ -386,7 +387,7 @@ int FEKOResultImport::AddFekoResultClick()
|
|||
QList<QStandardItem*> listItem = this->ListViewmodel->takeRow(select_Idx);
|
||||
int nRightCount = this->selectListViewmodel->rowCount();
|
||||
this->selectListViewmodel->insertRow(nRightCount, listItem);
|
||||
qDebug() << ("selectListViewmodel insertRow : "+ QString::number(select_Idx) +"-->" + QString::number(nRightCount) + "\n");
|
||||
// qDebug() << ("selectListViewmodel insertRow : "+ QString::number(select_Idx) +"-->" + QString::number(nRightCount) + "\n");
|
||||
}
|
||||
|
||||
this->ui->listView->setModel(this->ListViewmodel);
|
||||
|
@ -408,7 +409,7 @@ int FEKOResultImport::DeleteFekoResultClick()
|
|||
QList<QStandardItem*> listItem = this->selectListViewmodel->takeRow(select_Idx);
|
||||
int nRightCount = this->ListViewmodel->rowCount();
|
||||
this->ListViewmodel->insertRow(nRightCount, listItem);
|
||||
qDebug() << ("ListViewmodel insertRow : " + QString::number(select_Idx) + "-->" + QString::number(nRightCount) + "\n");
|
||||
// qDebug() << ("ListViewmodel insertRow : " + QString::number(select_Idx) + "-->" + QString::number(nRightCount) + "\n");
|
||||
}
|
||||
this->ui->listView->setModel(this->ListViewmodel);
|
||||
this->ui->SelectlistView->setModel(this->selectListViewmodel);
|
||||
|
|
|
@ -20,7 +20,7 @@ std::vector<QString> getFilelist(const QString& folderpath, const QString& fi
|
|||
if (directory.exists() && directory.isReadable()) {
|
||||
QFileInfoList fileList = directory.entryInfoList(QDir::Files | QDir::NoDotAndDotDot);
|
||||
for (const QFileInfo& fileInfo : fileList) {
|
||||
qDebug() << fileInfo.filePath() + "\nExtension: (" + filenameExtensionStr + ", " + fileInfo.suffix() + ")";
|
||||
// qDebug() << fileInfo.filePath() + "\nExtension: (" + filenameExtensionStr + ", " + fileInfo.suffix() + ")";
|
||||
if (filenameExtensionStr == u8"*" || filenameExtensionStr == fileInfo.suffix()) {
|
||||
filenames.push_back(fileInfo.filePath());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue