KFileItemList Class Reference
from PyKDE4.kio import *
Detailed Description
List of KFileItems, which adds a few helper
methods to QList<KFileItem>.
Methods |
| __init__ (self) |
| __init__ (self, [KFileItem] items) |
| __delitem__ (self, int a0) |
| __delitem__ (self, SIP_PYSLICE a0) |
int | __len__ (self) |
| __setitem__ (self, int a0, KFileItem a1) |
| __setitem__ (self, SIP_PYSLICE a0, KFileItemList a1) |
KFileItem | findByName (self, QString fileName) |
KFileItem | findByUrl (self, KUrl url) |
KFileItem | operator [] (self, int a0) |
KFileItemList | operator [] (self, SIP_PYSLICE a0) |
KUrl.List | targetUrlList (self) |
KUrl.List | urlList (self) |
Method Documentation
Creates an empty list of file items.
Creates a new KFileItemList from a QList of file items.
__delitem__ |
( |
self, |
|
|
|
int |
a0 |
|
) |
|
|
|
__delitem__ |
( |
self, |
|
|
|
SIP_PYSLICE |
a0 |
|
) |
|
|
|
Find a KFileItem by name and return it.
- Returns:
- the item with the given name, or a null-item if none was found
(see KFileItem.isNull())
Find a KFileItem by URL and return it.
- Returns:
- the item with the given URL, or a null-item if none was found
(see KFileItem.isNull())
- Returns:
- the list of target URLs that those items represent
- Since:
- 4.2
- Returns:
- the list of URLs that those items represent