From b0d671fede5adfadad2b465fb4c8ae50b40516f3 Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 10 Apr 2014 16:14:32 +0200 Subject: Implement Drag and Drop in Movie Archive Well, this was actually a bit of a drag. You have read the docs very carefully to get it right. For one, don't construct the drag object in mousePressEvent if you also want a double click, otherwise you end up with very weird behavior. Same goes for the receiving end. Differentiate between dragEnterEvent and dragMoveEvent, otherwise you'll only be able to drop items if you hit the right row on entering. There are some artefacts during the drag, but I guess that's a Qt bug. Didn't bother to look into it. --- archivecontroller.h | 1 + 1 file changed, 1 insertion(+) (limited to 'archivecontroller.h') diff --git a/archivecontroller.h b/archivecontroller.h index e7593e1..fb02383 100644 --- a/archivecontroller.h +++ b/archivecontroller.h @@ -56,6 +56,7 @@ class ArchiveController : public QObject { void addActionForTree(QAction *a); void addCovers(); void readConfig(); + void moveFilesToSeriespart(const QStringList &md5Sums, int newSeriesPart); private slots: void fileDoubleClicked(const QModelIndex &idx); -- cgit v1.2.3-70-g09d2