From 4469d4d5a45c0f5de821a3b45d20abc9ee5755bf Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 2 Nov 2008 13:57:35 +0000 Subject: Assure that automatically expanding of a folder also works when the new folder has a different view mode. CCMAIL: simon@etotheipiplusone.com svn path=/trunk/KDE/kdebase/apps/; revision=879143 --- src/dolphinview.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 170bc6bf8..a2d5f93cf 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -625,6 +625,12 @@ private slots: * to m_currentItemUrl. */ void restoreCurrentItem(); + + /** + * Is connected to the enterDir() signal from the FolderExpander + * and triggers the entering of the directory indicated by \a index. + */ + void enterDir(const QModelIndex& index, QAbstractItemView* view); private: void loadDirectory(const KUrl& url, bool reload = false); @@ -691,6 +697,12 @@ private: * this method has been introduced for convenience. */ bool isColumnViewActive() const; + + /** + * Deletes all views from m_expandedViews except if the view + * is currently shown. + */ + void deleteExpandedViews(); private: bool m_active : 1; @@ -721,6 +733,8 @@ private: KUrl m_rootUrl; KUrl m_currentItemUrl; + + QList m_expandedViews; }; inline bool DolphinView::isColumnViewActive() const -- cgit v1.3