aboutsummaryrefslogtreecommitdiff
path: root/qdeduper/imageitem.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-24 23:50:35 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-24 23:50:35 -0400
commit2962525cf5b4d26047ca2e79346fb85b2b93dd71 (patch)
tree006d7f42df6bed3cc2e5a5b47106b0db664b48bb /qdeduper/imageitem.hpp
parentaa50f0049e6f81470fcda0935ca3da661bc7e37e (diff)
downloaddeduper-2962525cf5b4d26047ca2e79346fb85b2b93dd71.tar.xz
Prep work for sorting. Leftovers from image widgets are now all gone (finally).
Diffstat (limited to 'qdeduper/imageitem.hpp')
-rw-r--r--qdeduper/imageitem.hpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/qdeduper/imageitem.hpp b/qdeduper/imageitem.hpp
index b6d775e..2d90644 100644
--- a/qdeduper/imageitem.hpp
+++ b/qdeduper/imageitem.hpp
@@ -15,9 +15,16 @@ public:
path_role = Qt::ItemDataRole::UserRole + 0x1000,
dimension_role,
file_size_role,
- hotkey_role
+ hotkey_role,
+ database_id_role,
+ default_order_role
};
- ImageItem(QString fn, QString dispn, QKeySequence hotkey, double pxratio = 1.0);
+ ImageItem(QString fn, QString dispn, QKeySequence hotkey, size_t dbid, size_t ord, double pxratio = 1.0);
+
+ QString path() const;
+ size_t database_id() const;
+ size_t default_order() const;
+ QKeySequence hotkey() const;
};
class ImageItemDelegate : public QAbstractItemDelegate