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/kfileitemlistview.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kitemviews/kfileitemlistview.h') diff --git a/src/kitemviews/kfileitemlistview.h b/src/kitemviews/kfileitemlistview.h index 77bfa21ed..696322f8f 100644 --- a/src/kitemviews/kfileitemlistview.h +++ b/src/kitemviews/kfileitemlistview.h @@ -61,7 +61,7 @@ public: virtual QSizeF itemSizeHint(int index) const; /** @reimp */ - virtual QHash visibleRoleSizes() const; + virtual QHash visibleRolesSizes() const; /** @reimp */ virtual QPixmap createDragPixmap(const QSet& indexes) const; @@ -72,7 +72,7 @@ protected: virtual void onModelChanged(KItemModelBase* current, KItemModelBase* previous); virtual void onScrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous); virtual void onItemSizeChanged(const QSizeF& current, const QSizeF& previous); - virtual void onOffsetChanged(qreal current, qreal previous); + virtual void onScrollOffsetChanged(qreal current, qreal previous); virtual void onVisibleRolesChanged(const QList& current, const QList& previous); virtual void onStyleOptionChanged(const KItemListStyleOption& current, const KItemListStyleOption& previous); virtual void onTransactionBegin(); -- cgit v1.3.1