┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemlistview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-03-27 00:44:39 +0200
committerPeter Penz <[email protected]>2012-03-27 00:48:34 +0200
commit793311dac163592a8b63fc4859fdc054d7a22022 (patch)
tree9645cd870530072b23d422d51fd0515f74de6c1f /src/kitemviews/kfileitemlistview.h
parent8c986e22fd8fa34ea6c29ad2e88e08c2f9b34bf2 (diff)
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.
Diffstat (limited to 'src/kitemviews/kfileitemlistview.h')
-rw-r--r--src/kitemviews/kfileitemlistview.h10
1 files changed, 0 insertions, 10 deletions
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
@@ -75,12 +75,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<int>& indexes) const;
protected:
@@ -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<QByteArray, int> m_minimumRolesWidths;
-
friend class KFileItemListViewTest; // For unit testing
};