aboutsummaryrefslogtreecommitdiff
path: root/qdeduper/imageitem.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-25 19:05:48 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-25 19:05:48 -0400
commita9318910a6d21747d7f8d85bdb08ec78611ca904 (patch)
tree7545769fa68c42248bef88edad5a1ee8b0a94c4b /qdeduper/imageitem.hpp
parentd49ac45655a160984c5e1c1429b08fab3f000224 (diff)
downloaddeduper-a9318910a6d21747d7f8d85bdb08ec78611ca904.tar.xz
Add sorting.
Diffstat (limited to 'qdeduper/imageitem.hpp')
-rw-r--r--qdeduper/imageitem.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qdeduper/imageitem.hpp b/qdeduper/imageitem.hpp
index 2d90644..5b1a1f3 100644
--- a/qdeduper/imageitem.hpp
+++ b/qdeduper/imageitem.hpp
@@ -17,7 +17,8 @@ public:
file_size_role,
hotkey_role,
database_id_role,
- default_order_role
+ default_order_role,
+ pixelcnt_role
};
ImageItem(QString fn, QString dispn, QKeySequence hotkey, size_t dbid, size_t ord, double pxratio = 1.0);
@@ -25,6 +26,7 @@ public:
size_t database_id() const;
size_t default_order() const;
QKeySequence hotkey() const;
+ void set_hotkey(QKeySequence hk);
};
class ImageItemDelegate : public QAbstractItemDelegate