itom
|
Instead of the default QFileSystemModel, this model is able to provide a more flexible support for drop or paste operations if the destination file already exists. If the file should be duplicated (from one folder to the same folder), a (copy)-suffix is appended to the base-filename. If the source is another directory, but the file has the same name, the user is prompted if he wants to overwrite the source file or not. More...
Public Member Functions | |
ItomFileSystemModel (QObject *parent=0) | |
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
Instead of the default QFileSystemModel, this model is able to provide a more flexible support for drop or paste operations if the destination file already exists. If the file should be duplicated (from one folder to the same folder), a (copy)-suffix is appended to the base-filename. If the source is another directory, but the file has the same name, the user is prompted if he wants to overwrite the source file or not.