Unsolved Haw I can improve Project Explorer?
-
I wish to do possible drag and drop files in Project Explorer in mode File System from one folder to another. It can rename files, but not move to other folder. Inspect sources https://github.com/qt-creator/qt-creator/tree/master/src/plugins/projectexplorer
I found it start from ProjectExplorerPlugin::handleRenameFileTell me it right or I need different way? May be I have make new plugin without change existing?
And are there any addition advice?=====
At now, I figured out:- edit mode sets in FolderNavigationWidget::editCurrentItem,
- after that occur FolderNavigationModel::setData,
- and farther it call QFileSystemModel::setData that do not enable rename with change folder.
-
Hi @iss7gli7,
It can rename files, but not move to other folder. Inspect
As renaming and moving is the same operation (as long as you stay on the same filesystem), you can move files by using rename and give a new path, keeping the same file name.
I already did this with ProjectExplorer.
Regards