code: Establish the theoretical transmission process.

This commit is contained in:
2025-06-18 15:10:28 +08:00
parent a53657df30
commit 5dee6ea41d
7 changed files with 24 additions and 16 deletions

View File

@@ -26,11 +26,6 @@ void CustomTableWidget::setBasePathCall(const std::function<QString()>& call)
basePathCall_ = call;
}
void CustomTableWidget::setOtherSidePathCall(const std::function<QString()>& call)
{
otherSideCall_ = call;
}
QString FileManager::GetCurRoot()
{
return curRoot_;
@@ -74,10 +69,10 @@ void CustomTableWidget::dragEnterEvent(QDragEnterEvent* event)
task.remoteId = ridCall_();
if (isRemote_) {
task.remotePath = basePathCall_();
task.localPath = Util::Join(otherSideCall_(), df.name);
task.localPath = Util::Join(dirinfo.root, df.name);
}
else {
task.remotePath = Util::Join(otherSideCall_(), df.name);
task.remotePath = Util::Join(dirinfo.root, df.name);
task.localPath = basePathCall_();
}
tasks.push_back(task);
@@ -106,6 +101,7 @@ void CustomTableWidget::mouseMoveEvent(QMouseEvent* event)
if (item->column() == 1) {
DirFileInfo df;
df.name = item->text();
v.vec.push_back(df);
}
}
mimeData->setData("application/x-custom-data", infoPack<DirFileInfoVec>(v));