diff options
| author | Peter Penz <[email protected]> | 2011-11-20 19:32:52 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-11-20 19:35:01 +0100 |
| commit | b27e599429731337af4bb18b986933c968bea279 (patch) | |
| tree | e807863400a9c3f6f48194a0f69f4c3d450ca092 /src/kitemviews/kfileitemmodel.h | |
| parent | 693f254252da3932d1307f65bc2a1bcaaad566ac (diff) | |
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.
Diffstat (limited to 'src/kitemviews/kfileitemmodel.h')
| -rw-r--r-- | src/kitemviews/kfileitemmodel.h | 11 |
1 files changed, 8 insertions, 3 deletions
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<KUrl> expandedUrls() const; - void restoreExpandedUrls(const QSet<KUrl>& urls); + + /** + * Expands all parent-items of each URL given by \a urls. + */ + void setExpanded(const QSet<KUrl>& urls); signals: void loadingCompleted(); @@ -291,8 +295,9 @@ private: // Stores the URLs of the expanded folders. QSet<KUrl> m_expandedUrls; - // Stores the URLs which have to be expanded in order to restore a previous state of the model. - QSet<KUrl> m_restoredExpandedUrls; + // URLs that must be expanded. The expanding is initially triggered in setExpanded() + // and done step after step in slotCompleted(). + QSet<KUrl> m_urlsToExpand; friend class KFileItemModelTest; // For unit testing }; |
