┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemmodel.h
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2011-11-24 23:38:36 +0100
committerFrank Reininghaus <[email protected]>2011-11-24 23:38:36 +0100
commit3950eccaf08374862ba848eac5319645d6a0f0d9 (patch)
tree6f1a2355b2a7751fd44dfe3dd8cb3ac223f88290 /src/kitemviews/kfileitemmodel.h
parentc0feb043e099620f50d3698c15219131973ed4f0 (diff)
Fix restoring expanded URLs
When navigating back or forward in history, DolphinView tells the KFileItemModel about the expanded URLs which should be restored before the folder is entered. In this case, the algorithm in the new function KFileItemModel::setExpanded(const QSet<KUrl>&) does not work. To fix this, the old function KFileItemModel::restoreExpandedUrls(const QSet<KUrl>&) is restored. Unit test included.
Diffstat (limited to 'src/kitemviews/kfileitemmodel.h')
-rw-r--r--src/kitemviews/kfileitemmodel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h
index a049f6766..17524b82a 100644
--- a/src/kitemviews/kfileitemmodel.h
+++ b/src/kitemviews/kfileitemmodel.h
@@ -122,6 +122,13 @@ public:
QSet<KUrl> expandedUrls() const;
/**
+ * Marks the URLs in \a urls as subfolders which were expanded previously.
+ * They are re-expanded one by one each time the KDirLister's completed() signal is received.
+ * Note that a manual triggering of the KDirLister is required.
+ */
+ void restoreExpandedUrls(const QSet<KUrl>& urls);
+
+ /**
* Expands all parent-items of each URL given by \a urls.
*/
void setExpanded(const QSet<KUrl>& urls);