Open YoshiMan opened 7 years ago
I think it is more usable, when you drag file/folder on a file, to copy/move the item to the parent folder. This is what most filemanagers do. This is indicated by a horizontal line between the 'drag onto' item and the item above this item in the treeview. So you can drop a file 'inside' a folder and not only on the folder entry.
You are right. Will update the issuse I will open an other issues with the same, but copying. And another with the renaming option via rightclick or hit F2 button.
woohoo d'n'd with folders works. @annejan @jounathaen Is there a reason why the proxy model is used for the treeview and storemodel. I removed the proxy mechanism and it works, execpt for the search, but i will fix this soon.
The proxymodel is/was for search alone as far as I can remember @YoshiMan
New issue for implementation notifying @dromer @nbm077
opened a pullrequest #245 . Please test with all settigns (pass dis/enabled, git dis/enabled) and on different OSes. I tried all possible settings on Linux Arch with QT5.
pass setting
moving a folder into a folder
pass mv folder1 folder2/folder1
moving a folder into a file
moving a file into a file
pass mv -f file1 file2
, but this would force an overwrite) @annejan what do you think?moving a file into a folder
git mv file1 folder1
no pass setting, but git setting
moving a folder into a folder
git mv folder1 folder2/folder1
moving a folder into a file
moving a file into a file
git mv -f file1 file2
, but this would force an overwrite) @annejan what do you think?moving a file into a folder
git mv file1 folder1
no pass setting and no git setting
moving a folder into a folder
QDir::rename(folder1, folder2/folder1)
moving a folder into a file
moving a file into a file
QFile::remove(file2) + QFile::rename(file1, file2)
, but this would force an overwrite) @annejan what do you think?moving a file into a folder
QFile::rename(file1, folder1/file1)