From 793311dac163592a8b63fc4859fdc054d7a22022 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 27 Mar 2012 00:44:39 +0200 Subject: KItemListView interface and implementation simplification - Remove KItemListView::preferredRoleColumnWidth() and allow implementing this as part of derived classes from KItemListWidget. Those derived classes are aware about the layout and hence also can provide the preferred role width. - Make KItemListView::itemSizeHint() non-virtual and also allow implementing the size hint as part of derived classes from KItemListWidget. --- src/kitemviews/kfileitemlistview.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/kitemviews/kfileitemlistview.h') diff --git a/src/kitemviews/kfileitemlistview.h b/src/kitemviews/kfileitemlistview.h index a94e2b6f5..40808c4de 100644 --- a/src/kitemviews/kfileitemlistview.h +++ b/src/kitemviews/kfileitemlistview.h @@ -74,12 +74,6 @@ public: */ QStringList enabledPlugins() const; - /** @reimp */ - virtual QSizeF itemSizeHint(int index) const; - - /** @reimp */ - virtual qreal preferredRoleColumnWidth(const QByteArray& role, int index) const; - /** @reimp */ virtual QPixmap createDragPixmap(const QSet& indexes) const; @@ -111,7 +105,6 @@ private slots: private: void updateLayoutOfVisibleItems(); void updateTimersInterval(); - void updateMinimumRolesWidths(); /** * Applies the roles defined by KItemListView::visibleRoles() to the @@ -135,9 +128,6 @@ private: QTimer* m_updateVisibleIndexRangeTimer; QTimer* m_updateIconSizeTimer; - // Cache for calculating visibleRoleSizes() in a fast way - QHash m_minimumRolesWidths; - friend class KFileItemListViewTest; // For unit testing }; -- cgit v1.3.1