KFile
#include <kfiletreeview.h>

Public Slots | |
| void | setCurrentUrl (const KUrl &url) |
| void | setDirOnlyMode (bool enabled) |
| void | setRootUrl (const KUrl &url) |
| void | setShowHiddenFiles (bool enabled) |
Signals | |
| void | activated (const KUrl &url) |
| void | currentChanged (const KUrl &url) |
Public Member Functions | |
| KFileTreeView (QWidget *parent=0) | |
| ~KFileTreeView () | |
| KUrl | currentUrl () const |
| KUrl | rootUrl () const |
| KUrl | selectedUrl () const |
| KUrl::List | selectedUrls () const |
| bool | showHiddenFiles () const |
| QSize | sizeHint () const |
Protected Member Functions | |
| virtual void | contextMenuEvent (QContextMenuEvent *) |
Detailed Description
The file treeview offers a treeview on the filesystem.
Definition at line 34 of file kfiletreeview.h.
Constructor & Destructor Documentation
| KFileTreeView::KFileTreeView | ( | QWidget * | parent = 0 | ) |
Creates a new file tree view.
Definition at line 85 of file kfiletreeview.cpp.
| KFileTreeView::~KFileTreeView | ( | ) |
Destroys the file tree view.
Definition at line 107 of file kfiletreeview.cpp.
Member Function Documentation
|
signal |
This signal is emitted whenever an url has been activated.
|
protectedvirtual |
Definition at line 184 of file kfiletreeview.cpp.
|
signal |
This signal is emitted whenever the current url has been changed.
| KUrl KFileTreeView::currentUrl | ( | ) | const |
Returns the current url.
Definition at line 112 of file kfiletreeview.cpp.
| KUrl KFileTreeView::rootUrl | ( | ) | const |
Returns the current root url of the view.
Definition at line 145 of file kfiletreeview.cpp.
| KUrl KFileTreeView::selectedUrl | ( | ) | const |
Returns the selected url.
Definition at line 117 of file kfiletreeview.cpp.
| KUrl::List KFileTreeView::selectedUrls | ( | ) | const |
Returns all selected urls.
Definition at line 128 of file kfiletreeview.cpp.
|
slot |
Sets the current url of the view.
Definition at line 164 of file kfiletreeview.cpp.
|
slot |
Sets whether the dir-only mode is enabled.
In dir-only mode, only directories and subdirectories are listed in the view.
Definition at line 150 of file kfiletreeview.cpp.
|
slot |
Sets the root url of the view.
The default is file:///.
Definition at line 179 of file kfiletreeview.cpp.
|
slot |
Sets whether hidden files shall be listed.
Definition at line 156 of file kfiletreeview.cpp.
| bool KFileTreeView::showHiddenFiles | ( | ) | const |
Returns true if the view is currently showing hidden files.
- Since
- 4.3
Definition at line 195 of file kfiletreeview.cpp.
| QSize KFileTreeView::sizeHint | ( | void | ) | const |
Definition at line 200 of file kfiletreeview.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference