Added drop support for copying/moving files in the folders view

This commit is contained in:
Luis Ángel San Martín
2014-10-11 23:38:27 +02:00
parent 8d4a3b0e84
commit 51cf77faca
10 changed files with 195 additions and 32 deletions

View File

@ -201,6 +201,7 @@ private:
//QModelIndex _rootIndex;
//QModelIndex _rootIndexCV;
QModelIndex copyMoveIndexDestination;
quint64 _comicIdEdited;
@ -324,9 +325,13 @@ public slots:
void loadCoversFromCurrentModel();
void copyAndImportComicsToCurrentFolder(const QList<QString> & comics);
void moveAndImportComicsToCurrentFolder(const QList<QString> &comics);
void copyAndImportComicsToFolder(const QList<QString> & comics, const QModelIndex & miFolder);
void moveAndImportComicsToFolder(const QList<QString> & comics, const QModelIndex & miFolder);
void processComicFiles(ComicFilesManager * comicFilesManager, QProgressDialog * progressDialog);
void updateCurrentFolder(); //imports new comics from the current folder
void updateCopyMoveFolderDestination(); //imports new comics from the current folder
QProgressDialog * newProgressDialog(const QString & label, int maxValue);
void reloadAfterCopyMove();
QModelIndex getCurrentFolderIndex();
};
#endif