From aee65350437770b22b289e2c7ec5a5a4436e39a6 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 25 Sep 2011 19:52:33 +0200 Subject: Provide scrollbar for large items If an item does not fit into the available width/height a scrollbar should be provided (e.g. typically this represents the horizontal scrollbar in the details-view where the width can be larger than the than the visible width). Currently the interaction with the scrollbar is not implemented but this will be a quite minor task in comparison to this patch. --- src/kitemviews/kitemlistviewanimation_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kitemviews/kitemlistviewanimation_p.h') diff --git a/src/kitemviews/kitemlistviewanimation_p.h b/src/kitemviews/kitemlistviewanimation_p.h index 0bf54d296..b3a95a871 100644 --- a/src/kitemviews/kitemlistviewanimation_p.h +++ b/src/kitemviews/kitemlistviewanimation_p.h @@ -49,8 +49,8 @@ public: void setScrollOrientation(Qt::Orientation orientation); Qt::Orientation scrollOrientation() const; - void setOffset(qreal offset); - qreal offset() const; + void setScrollOffset(qreal scrollOffset); + qreal scrollOffset() const; void start(QGraphicsWidget* widget, AnimationType type, const QVariant& endValue = QVariant()); @@ -70,7 +70,7 @@ private: enum { AnimationTypeCount = 4 }; Qt::Orientation m_scrollOrientation; - qreal m_offset; + qreal m_scrollOffset; QHash m_animation[AnimationTypeCount]; }; -- cgit v1.3