diff options
author | 2022-09-26 22:14:18 -0400 | |
---|---|---|
committer | 2022-09-26 22:17:44 -0400 | |
commit | 2e7924a07d45c1d1468552f951dcd2f2dcc948fa (patch) | |
tree | 24b6788b505a82f70f7dd82f8d9f1570fc88fef1 /qdeduper/imageitem.hpp | |
parent | 43a058c0957bec3fc564a7a019bdc03829e32e70 (diff) | |
download | deduper-2e7924a07d45c1d1468552f951dcd2f2dcc948fa.tar.xz |
Add a few basic settings items.
Yes I stole qmp's settings design and silently relicensed the
(largely identical) code. But who in the world cares, plus I'm the
author of qmp anyway.
Diffstat (limited to 'qdeduper/imageitem.hpp')
-rw-r--r-- | qdeduper/imageitem.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qdeduper/imageitem.hpp b/qdeduper/imageitem.hpp index abef719..66e4644 100644 --- a/qdeduper/imageitem.hpp +++ b/qdeduper/imageitem.hpp @@ -40,6 +40,7 @@ private: const static int HKSHDS = 2; int vw = -1; int hh = -1; + int min_height = 64; bool singlemode = false; bool show_hotkey = true; QAbstractItemModel *im = nullptr; @@ -47,7 +48,8 @@ public: void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const; QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; void resize(); - void setScrollbarMargins(int vw, int hh); + void set_scrollbar_margins(int vw, int hh); + void set_min_height(int mh); void set_single_item_mode(bool enabled); bool is_single_item_mode(); |