| 894 | } |
| 895 | |
| 896 | QString FileSystemActor::resolveDropOperationString(vector<BumpObject *>& objList) |
| 897 | { |
| 898 | // if this is a recycle bin, then show "delete files" |
| 899 | if (isFileSystemType(Virtual) && |
| 900 | winOS->GetIconTypeFromFileName(getFullPath()) == RecycleBin) |
| 901 | { |
| 902 | return QT_TR_NOOP("Delete"); |
| 903 | } |
| 904 | else if (isFileSystemType(Executable)) |
| 905 | { |
| 906 | return QT_TR_NOOP("Launch %1").arg(getFileName(true)); |
| 907 | } |
| 908 | else if (isFileSystemType(Link)) |
| 909 | { |
| 910 | // check if we are pointing to a folder or not |
| 911 | if (!QFileInfo(getTargetPath()).isDir()) |
| 912 | { |
| 913 | return QT_TR_NOOP("Launch %1").arg(getFileName(true)); |
| 914 | } |
| 915 | } |
| 916 | else |
| 917 | { |
| 918 | // check if the root of the items in the object list is different |
| 919 | // than that of this item |
| 920 | if (isCopyIntoActor(objList)) // Shift forces move, Ctrl forces copy, common root defaults to move |
| 921 | { |
| 922 | return QT_TR_NOOP("Copy"); |
| 923 | } |
| 924 | } |
| 925 | return Actor::resolveDropOperationString(objList); |
| 926 | } |
| 927 | |
| 928 | bool FileSystemActor::isValidDropTarget() |
| 929 | { |
nothing calls this directly
no test coverage detected