From 2e7924a07d45c1d1468552f951dcd2f2dcc948fa Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 26 Sep 2022 22:14:18 -0400 Subject: 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. --- qdeduper/imageitem.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qdeduper/imageitem.hpp') 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(); -- cgit v1.2.3