summaryrefslogtreecommitdiffstats
path: root/fswidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-04-02 19:07:09 +0200
committerArno <arno@disconnect.de>2018-04-02 19:07:09 +0200
commiteba5b555ddaaaa3d95a06226450c7bbc452ea2ef (patch)
tree91566f59b5db993bd774461efaeb998a1adccbcb /fswidget.h
parent0bd9ca3e15592c8c3e79c6a599d20c5555b8c687 (diff)
downloadSheMov-eba5b555ddaaaa3d95a06226450c7bbc452ea2ef.tar.gz
SheMov-eba5b555ddaaaa3d95a06226450c7bbc452ea2ef.tar.bz2
SheMov-eba5b555ddaaaa3d95a06226450c7bbc452ea2ef.zip
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.
Diffstat (limited to 'fswidget.h')
-rw-r--r--fswidget.h2
1 files changed, 1 insertions, 1 deletions
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();