diff options
| author | Peter Penz <[email protected]> | 2008-10-11 14:13:14 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-10-11 14:13:14 +0000 |
| commit | 3b77f108ae1d08e663d06394484c6f0c3100a12a (patch) | |
| tree | a661aa6835ae61b9c11bbfba3d49810ed93f5c25 /src/treeviewsidebarpage.h | |
| parent | 5ab9dca1f945592e120758f085b6b80d5719b584 (diff) | |
Simplify the treeview panel implementation (thanks to David Faure for pimping KDirModel::expandToUrl() :-)).
svn path=/trunk/KDE/kdebase/apps/; revision=869982
Diffstat (limited to 'src/treeviewsidebarpage.h')
| -rw-r--r-- | src/treeviewsidebarpage.h | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/src/treeviewsidebarpage.h b/src/treeviewsidebarpage.h index b9f1fba6d..3a37c8882 100644 --- a/src/treeviewsidebarpage.h +++ b/src/treeviewsidebarpage.h @@ -93,31 +93,12 @@ private slots: * to the index \a index. */ void dropUrls(const QModelIndex& index, QDropEvent* event); - - /** - * Invokes expandToLeafDir() asynchronously (the expanding - * may not be done in the context of this slot). - */ - void triggerExpanding(); - - /** - * Invokes loadSubTree() asynchronously (the loading - * may not be done in the context of this slot). - */ - void triggerLoadSubTree(); - - /** - * Expands all directories to make m_leafDir visible and - * adjusts the selection. - */ - void expandToLeafDir(); - + /** - * Loads the sub tree to make m_leafDir visible. Is invoked - * indirectly by loadTree() after the directory lister has - * finished loading the root items. + * Expands the treeview to show the directory + * specified by \a index. */ - void loadSubTree(); + void expandToDir(const QModelIndex& index); /** * Assures that the leaf folder gets visible. |
