From b27e599429731337af4bb18b986933c968bea279 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 20 Nov 2011 19:32:52 +0100 Subject: Initial draft for bringing back the "Folders" panel The folders panel has been adjusted to use the new view-engine. A lot of things don't work yet, but are mostly minor issues that should be fixable during the next 10 days. --- src/kitemviews/kfileitemmodel.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/kitemviews/kfileitemmodel.h') diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h index b28887b2c..a049f6766 100644 --- a/src/kitemviews/kfileitemmodel.h +++ b/src/kitemviews/kfileitemmodel.h @@ -120,7 +120,11 @@ public: bool isExpanded(int index) const; bool isExpandable(int index) const; QSet expandedUrls() const; - void restoreExpandedUrls(const QSet& urls); + + /** + * Expands all parent-items of each URL given by \a urls. + */ + void setExpanded(const QSet& urls); signals: void loadingCompleted(); @@ -291,8 +295,9 @@ private: // Stores the URLs of the expanded folders. QSet m_expandedUrls; - // Stores the URLs which have to be expanded in order to restore a previous state of the model. - QSet m_restoredExpandedUrls; + // URLs that must be expanded. The expanding is initially triggered in setExpanded() + // and done step after step in slotCompleted(). + QSet m_urlsToExpand; friend class KFileItemModelTest; // For unit testing }; -- cgit v1.3.1