diff options
| author | Peter Penz <[email protected]> | 2008-11-02 13:57:35 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-11-02 13:57:35 +0000 |
| commit | 4469d4d5a45c0f5de821a3b45d20abc9ee5755bf (patch) | |
| tree | 8e7674ea0541fabab99a0f84a62afed6ee14746b /src/dolphinview.h | |
| parent | 651ebed54bc7b78c0338ba8afdc75a4020c3bfaa (diff) | |
Assure that automatically expanding of a folder also works when the new folder has a different view mode.
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=879143
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 14 |
1 files changed, 14 insertions, 0 deletions
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<QAbstractItemView*> m_expandedViews; }; inline bool DolphinView::isColumnViewActive() const |
