aboutsummaryrefslogtreecommitdiff
path: root/qdeduper/imageitem.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-26 22:14:18 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-26 22:17:44 -0400
commit2e7924a07d45c1d1468552f951dcd2f2dcc948fa (patch)
tree24b6788b505a82f70f7dd82f8d9f1570fc88fef1 /qdeduper/imageitem.hpp
parent43a058c0957bec3fc564a7a019bdc03829e32e70 (diff)
downloaddeduper-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.hpp4
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();