aboutsummaryrefslogtreecommitdiff
path: root/mingui/imageitem.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'mingui/imageitem.hpp')
-rw-r--r--mingui/imageitem.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/mingui/imageitem.hpp b/mingui/imageitem.hpp
index 8c9397e..43fb0c8 100644
--- a/mingui/imageitem.hpp
+++ b/mingui/imageitem.hpp
@@ -28,10 +28,13 @@ private:
const static int HKPADD = 4;
const static int LINESP = 4;
const static int HKSHDS = 2;
+ int vw = -1;
+ int hh = -1;
public:
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
void resize(const QModelIndex &index);
+ void setScrollbarMargins(int vw, int hh);
Q_SIGNALS:
void sizeHintChanged(const QModelIndex &index);
};