Definition at line 59 of file qdirmodel.h.
#include <qdirmodel.h>

Public Types |
|
| enum | Roles { FileIconRole = Qt::DecorationRole, FilePathRole = Qt::UserRole + 1, FileNameRole } |
Public Slots |
|
| void | refresh (const QModelIndex &parent=QModelIndex()) |
Public Member Functions |
|
| QDirModel (const QStringList &nameFilters, QDir::Filters filters, QDir::SortFlags sort, QObject *parent=0) | |
| QDirModel (QObject *parent=0) | |
| ~QDirModel () | |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| QModelIndex | parent (const QModelIndex &child) const |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| int | columnCount (const QModelIndex &parent=QModelIndex()) 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 |
| bool | hasChildren (const QModelIndex &index=QModelIndex()) 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 |
| void | setIconProvider (QFileIconProvider *provider) |
| QFileIconProvider * | iconProvider () const |
| void | setNameFilters (const QStringList &filters) |
| QStringList | nameFilters () const |
| void | setFilter (QDir::Filters filters) |
| QDir::Filters | filter () const |
| void | setSorting (QDir::SortFlags sort) |
| QDir::SortFlags | sorting () const |
| void | setResolveSymlinks (bool enable) |
| bool | resolveSymlinks () const |
| void | setReadOnly (bool enable) |
| bool | isReadOnly () const |
| void | setLazyChildCount (bool enable) |
| bool | lazyChildCount () const |
| QModelIndex | index (const QString &path, int column=0) const |
| bool | isDir (const QModelIndex &index) const |
| QModelIndex | mkdir (const QModelIndex &parent, const QString &name) |
| bool | rmdir (const QModelIndex &index) |
| bool | remove (const QModelIndex &index) |
| QString | filePath (const QModelIndex &index) const |
| QString | fileName (const QModelIndex &index) const |
| QIcon | fileIcon (const QModelIndex &index) const |
| QFileInfo | fileInfo (const QModelIndex &index) const |
Protected Member Functions |
|
| QDirModel (QDirModelPrivate &, QObject *parent=0) | |
Properties |
|
| bool | resolveSymlinks |
| bool | readOnly |
| bool | lazyChildCount |
Friends |
|
| class | QFileDialogPrivate |
| enum Roles |
Definition at line 67 of file qdirmodel.h.
{
FileIconRole = Qt::DecorationRole,
FilePathRole = Qt::UserRole + 1,
FileNameRole
};
| QDirModel | ( | const QStringList & | nameFilters, |
| QDir::Filters | filters, | ||
| QDir::SortFlags | sort, | ||
| QObject * | parent = 0 |
||
| ) |
| ~QDirModel | ( | ) |
| QModelIndex index | ( | int | row, |
| int | column, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | const [virtual] |
Implements QAbstractItemModel.
| QModelIndex parent | ( | const QModelIndex & | child | ) | const [virtual] |
Implements QAbstractItemModel.
| int rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Implements QAbstractItemModel.
| int columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Implements QAbstractItemModel.
| 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.
| bool hasChildren | ( | const QModelIndex & | index = QModelIndex() |
) | 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.
| void setIconProvider | ( | QFileIconProvider * | provider | ) |
| QFileIconProvider* iconProvider | ( | ) | const |
| void setNameFilters | ( | const QStringList & | filters | ) |
| QStringList nameFilters | ( | ) | const |
| void setFilter | ( | QDir::Filters | filters | ) |
| QDir::Filters filter | ( | ) | const |
| void setSorting | ( | QDir::SortFlags | sort | ) |
| QDir::SortFlags sorting | ( | ) | const |
| void setResolveSymlinks | ( | bool | enable | ) |
| bool resolveSymlinks | ( | ) | const |
| void setReadOnly | ( | bool | enable | ) |
| bool isReadOnly | ( | ) | const |
| void setLazyChildCount | ( | bool | enable | ) |
| bool lazyChildCount | ( | ) | const |
| QModelIndex index | ( | const QString & | path, |
| int | column = 0 |
||
| ) | const |
| bool isDir | ( | const QModelIndex & | index | ) | const |
| QModelIndex mkdir | ( | const QModelIndex & | parent, |
| const QString & | name | ||
| ) |
| bool rmdir | ( | const QModelIndex & | index | ) |
| bool remove | ( | const QModelIndex & | index | ) |
| QString filePath | ( | const QModelIndex & | index | ) | const |
| QString fileName | ( | const QModelIndex & | index | ) | const |
| QIcon fileIcon | ( | const QModelIndex & | index | ) | const |
| QFileInfo fileInfo | ( | const QModelIndex & | index | ) | const |
| void refresh | ( | const QModelIndex & | parent = QModelIndex() |
) | [slot] |
friend class QFileDialogPrivate
[friend] |
Definition at line 146 of file qdirmodel.h.
bool resolveSymlinks [read,
write] |
Definition at line 62 of file qdirmodel.h.
bool readOnly [read, write] |
Definition at line 63 of file qdirmodel.h.
bool lazyChildCount [read,
write] |
Definition at line 64 of file qdirmodel.h.