MCPcopy Create free account
hub / github.com/IJHack/QtPass / handleFileToDirDrop

Method handleFileToDirDrop

src/storemodel.cpp:395–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395auto StoreModel::handleFileToDirDrop(const QString &cleanedSrc,
396 const QString &cleanedDest,
397 Qt::DropAction action) -> bool {
398 if (action == Qt::MoveAction) {
399 QtPassSettings::getPass()->Move(cleanedSrc, cleanedDest);
400 } else if (action == Qt::CopyAction) {
401 QtPassSettings::getPass()->Copy(cleanedSrc, cleanedDest);
402 }
403 return true;
404}
405
406auto StoreModel::handleFileToFileDrop(const QString &cleanedSrc,
407 const QString &cleanedDest,

Callers

nothing calls this directly

Calls 2

MoveMethod · 0.45
CopyMethod · 0.45

Tested by

no test coverage detected