class KFilePlacesModel |
|
This class is a list view model. Each entry represents a "place" where user can access files. Only revelant when used with QListView or QTableView. |
|
|
|
|
Returns the closest item for the URL url.
The closest item is defined as item which is equal to
the URL or at least is a parent URL. If there are more than
one possible parent URL candidates, the item which covers
the bigger range of the URL is returned.
Example: the url is '/home/peter/Documents/Music'. Available items are: - /home/peter - /home/peter/Documents The returned item will the one for '/home/peter/Documents'. |
|
Get the number of columns for a model index. |
|
Get a visible data based on Qt role for the given index.
Return the device information for the give index.
index - The QModelIndex which contains the row, column to fetch the data. role - The Interview data role(ex: Qt.DisplayRole). Returns the data for the given index and role. |
|
|
|
|
|
|
|
|
Get the children model index for the given row and column. |
|
|
|
|
|
Get the parent QModelIndex for the given model child. |
|
|
|
|
Get the number of rows for a model index. |
|
|
|
|
|
|
|
UrlRole | - 0x069CD12B | - | ||
HiddenRole | - 0x0741CAAC | - | ||
SetupNeededRole | - 0x059A935D | - |