diff options
author | Arno <arno@disconnect.de> | 2018-04-02 19:07:09 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-04-02 19:07:09 +0200 |
commit | eba5b555ddaaaa3d95a06226450c7bbc452ea2ef (patch) | |
tree | 91566f59b5db993bd774461efaeb998a1adccbcb /fswidget.h | |
parent | 0bd9ca3e15592c8c3e79c6a599d20c5555b8c687 (diff) | |
download | SheMov-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |