Definition at line 63 of file qfilesystemmodel.h.
#include <qfilesystemmodel.h>

Public Types |
|
| enum | Roles { FileIconRole = Qt::DecorationRole, FilePathRole = Qt::UserRole + 1, FileNameRole = Qt::UserRole + 2, FilePermissions = Qt::UserRole + 3 } |
Signals |
|
| void | rootPathChanged (const QString &newPath) |
| void | fileRenamed (const QString &path, const QString &oldName, const QString &newName) |
| void | directoryLoaded (const QString &path) |
Public Member Functions |
|
| QFileSystemModel (QObject *parent=0) | |
| ~QFileSystemModel () | |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| QModelIndex | index (const QString &path, int column=0) const |
| QModelIndex | parent (const QModelIndex &child) const |
| bool | hasChildren (const QModelIndex &parent=QModelIndex()) const |
| bool | canFetchMore (const QModelIndex &parent) const |
| void | fetchMore (const QModelIndex &parent) |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | myComputer (int role=Qt::DisplayRole) const |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| Qt::ItemFlags | flags (const QModelIndex &index) const |
| void | sort (int column, Qt::SortOrder order=Qt::AscendingOrder) |
| QStringList | mimeTypes () const |
| QMimeData * | mimeData (const QModelIndexList &indexes) const |
| bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
| Qt::DropActions | supportedDropActions () const |
| QModelIndex | setRootPath (const QString &path) |
| QString | rootPath () const |
| QDir | rootDirectory () const |
| void | setIconProvider (QFileIconProvider *provider) |
| QFileIconProvider * | iconProvider () const |
| void | setFilter (QDir::Filters filters) |
| QDir::Filters | filter () const |
| void | setResolveSymlinks (bool enable) |
| bool | resolveSymlinks () const |
| void | setReadOnly (bool enable) |
| bool | isReadOnly () const |
| void | setNameFilterDisables (bool enable) |
| bool | nameFilterDisables () const |
| void | setNameFilters (const QStringList &filters) |
| QStringList | nameFilters () const |
| QString | filePath (const QModelIndex &index) const |
| bool | isDir (const QModelIndex &index) const |
| qint64 | size (const QModelIndex &index) const |
| QString | type (const QModelIndex &index) const |
| QDateTime | lastModified (const QModelIndex &index) const |
| QModelIndex | mkdir (const QModelIndex &parent, const QString &name) |
| bool | rmdir (const QModelIndex &index) const |
| QString | fileName (const QModelIndex &index) const |
| QIcon | fileIcon (const QModelIndex &index) const |
| QFile::Permissions | permissions (const QModelIndex &index) const |
| QFileInfo | fileInfo (const QModelIndex &index) const |
| bool | remove (const QModelIndex &index) const |
Protected Member Functions |
|
| QFileSystemModel (QFileSystemModelPrivate &, QObject *parent=0) | |
| void | timerEvent (QTimerEvent *event) |
| bool | event (QEvent *event) |
Properties |
|
| bool | resolveSymlinks |
| bool | readOnly |
| bool | nameFilterDisables |
| enum Roles |
Definition at line 76 of file qfilesystemmodel.h.
{
FileIconRole = Qt::DecorationRole,
FilePathRole = Qt::UserRole + 1,
FileNameRole = Qt::UserRole + 2,
FilePermissions = Qt::UserRole + 3
};
| QFileSystemModel | ( | QObject * | parent = 0 |
) | [explicit] |
| ~QFileSystemModel | ( | ) |
| QFileSystemModel | ( | QFileSystemModelPrivate & | , |
| QObject * | parent = 0 |
||
| ) | [protected] |
| void rootPathChanged | ( | const QString & | newPath | ) | [signal] |
| void directoryLoaded | ( | const QString & | path | ) | [signal] |
| QModelIndex index | ( | int | row, |
| int | column, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | const [virtual] |
Implements QAbstractItemModel.
| QModelIndex index | ( | const QString & | path, |
| int | column = 0 |
||
| ) | const |
| QModelIndex parent | ( | const QModelIndex & | child | ) | const [virtual] |
Implements QAbstractItemModel.
| bool hasChildren | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Reimplemented from QAbstractItemModel.
| bool canFetchMore | ( | const QModelIndex & | parent | ) | const [virtual] |
Reimplemented from QAbstractItemModel.
| void fetchMore | ( | const QModelIndex & | parent | ) | [virtual] |
Reimplemented from QAbstractItemModel.
| int rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Implements QAbstractItemModel.
| int columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Implements QAbstractItemModel.
| QVariant myComputer | ( | int | role =
Qt::DisplayRole |
) | const |
| QVariant data | ( | const QModelIndex & | index, |
| int | role =
Qt::DisplayRole |
||
| ) | const [virtual] |
Implements QAbstractItemModel.
| bool setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | role =
Qt::EditRole |
||
| ) | [virtual] |
Reimplemented from QAbstractItemModel.
| QVariant headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role =
Qt::DisplayRole |
||
| ) | const [virtual] |
Reimplemented from QAbstractItemModel.
| Qt::ItemFlags flags | ( | const QModelIndex & | index | ) | const [virtual] |
Reimplemented from QAbstractItemModel.
| void sort | ( | int | column, |
| Qt::SortOrder | order =
Qt::AscendingOrder |
||
| ) | [virtual] |
Reimplemented from QAbstractItemModel.
| QStringList mimeTypes | ( | ) | const [virtual] |
Reimplemented from QAbstractItemModel.
| QMimeData* mimeData | ( | const QModelIndexList & | indexes | ) | const [virtual] |
Reimplemented from QAbstractItemModel.
| bool dropMimeData | ( | const QMimeData * | data, |
| Qt::DropAction | action, | ||
| int | row, | ||
| int | column, | ||
| const QModelIndex & | parent | ||
| ) | [virtual] |
Reimplemented from QAbstractItemModel.
| Qt::DropActions supportedDropActions | ( | ) | const [virtual] |
Reimplemented from QAbstractItemModel.
| QModelIndex setRootPath | ( | const QString & | path | ) |
| QString rootPath | ( | ) | const |
| QDir rootDirectory | ( | ) | const |
| void setIconProvider | ( | QFileIconProvider * | provider | ) |
| QFileIconProvider* iconProvider | ( | ) | const |
| void setFilter | ( | QDir::Filters | filters | ) |
| QDir::Filters filter | ( | ) | const |
| void setResolveSymlinks | ( | bool | enable | ) |
| bool resolveSymlinks | ( | ) | const |
| void setReadOnly | ( | bool | enable | ) |
| bool isReadOnly | ( | ) | const |
| void setNameFilterDisables | ( | bool | enable | ) |
| bool nameFilterDisables | ( | ) | const |
| void setNameFilters | ( | const QStringList & | filters | ) |
| QStringList nameFilters | ( | ) | const |
| QString filePath | ( | const QModelIndex & | index | ) | const |
| bool isDir | ( | const QModelIndex & | index | ) | const |
| qint64 size | ( | const QModelIndex & | index | ) | const |
| QString type | ( | const QModelIndex & | index | ) | const |
| QDateTime lastModified | ( | const QModelIndex & | index | ) | const |
| QModelIndex mkdir | ( | const QModelIndex & | parent, |
| const QString & | name | ||
| ) |
| bool rmdir | ( | const QModelIndex & | index | ) | const [inline] |
Definition at line 166 of file qfilesystemmodel.h.
| QString fileName | ( | const QModelIndex & | index | ) | const [inline] |
Definition at line 168 of file qfilesystemmodel.h.
{ return aindex.data(Qt::DisplayRole).toString(); }
| QIcon fileIcon | ( | const QModelIndex & | index | ) | const [inline] |
Definition at line 170 of file qfilesystemmodel.h.
{ return qvariant_cast<QIcon>(aindex.data(Qt::DecorationRole)); }
| QFile::Permissions permissions | ( | const QModelIndex & | index | ) | const |
| QFileInfo fileInfo | ( | const QModelIndex & | index | ) | const [inline] |
Definition at line 172 of file qfilesystemmodel.h.
| bool remove | ( | const QModelIndex & | index | ) | const |
| void timerEvent | ( | QTimerEvent * | event | ) | [protected, virtual] |
Reimplemented from QObject.
bool resolveSymlinks [read,
write] |
Definition at line 66 of file qfilesystemmodel.h.
bool readOnly [read, write] |
Definition at line 67 of file qfilesystemmodel.h.
bool nameFilterDisables [read,
write] |
Definition at line 68 of file qfilesystemmodel.h.