From eba5b555ddaaaa3d95a06226450c7bbc452ea2ef Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 2 Apr 2018 19:07:09 +0200 Subject: Implement duplicate checking for pics in FSWidget Assume that the pictures are identical when the MD5-Sum is. Don't do that if only the filename is identical. There can be pics with identical names in the database. Instead, record the md5sum in a custom role. The idea is to let the user sort it out by comparing all pictures visually, but that's not yet implemented. --- fswidget.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fswidget.h') diff --git a/fswidget.h b/fswidget.h index acc9282..48bc113 100644 --- a/fswidget.h +++ b/fswidget.h @@ -17,7 +17,7 @@ class FSProxy; class FSWidget : public QWidget { Q_OBJECT public: - enum CustomRoles { FullPathRole = Qt::UserRole + 1, DurationRole = Qt::UserRole + 2, SizeRole = Qt::UserRole + 3, MimeRole = Qt::UserRole + 4 }; + enum CustomRoles { FullPathRole = Qt::UserRole + 1, DurationRole = Qt::UserRole + 2, SizeRole = Qt::UserRole + 3, MimeRole = Qt::UserRole + 4, DupDataRole = Qt::UserRole + 5 }; explicit FSWidget(QWidget *parent = nullptr); ~FSWidget(); -- cgit v1.2.3-70-g09d2