NAME

Qt::Gui::QFileSystemModel

PUBLIC METHODS

QFileSystemModel(QObject * parent)
QFileSystemModel(QObject * parent = 0)
~QFileSystemModel()
bool canFetchMore(const QModelIndex & parent)
int columnCount(const QModelIndex & parent)
int columnCount(const QModelIndex & parent = QModelIndex())
QVariant data(const QModelIndex & index, int role)
QVariant data(const QModelIndex & index, int role = Qt::DisplayRole)
bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent)
void fetchMore(const QModelIndex & parent)
QIcon fileIcon(const QModelIndex & index)
QFileInfo fileInfo(const QModelIndex & index)
QString fileName(const QModelIndex & index)
QString filePath(const QModelIndex & index)
QDir::Filters filter()
QFlags<Qt::ItemFlag> flags(const QModelIndex & index)
bool hasChildren(const QModelIndex & parent)
bool hasChildren(const QModelIndex & parent = QModelIndex())
QVariant headerData(int section, Qt::Orientation orientation, int role)
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole)
QFileIconProvider * iconProvider()
QModelIndex index(const QString & path, int column)
QModelIndex index(const QString & path, int column = 0)
QModelIndex index(int row, int column, const QModelIndex & parent)
QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex())
bool isDir(const QModelIndex & index)
bool isReadOnly()
QDateTime lastModified(const QModelIndex & index)
QMimeData * mimeData(const QList<QModelIndex> & indexes)
QStringList mimeTypes()
QModelIndex mkdir(const QModelIndex & parent, const QString & name)
QVariant myComputer(int role)
QVariant myComputer(int role = Qt::DisplayRole)
bool nameFilterDisables()
QStringList nameFilters()
QModelIndex parent(const QModelIndex & child)
QFile::Permissions permissions(const QModelIndex & index)
bool remove(const QModelIndex & index)
bool resolveSymlinks()
bool rmdir(const QModelIndex & index)
QDir rootDirectory()
QString rootPath()
int rowCount(const QModelIndex & parent)
int rowCount(const QModelIndex & parent = QModelIndex())
bool setData(const QModelIndex & index, const QVariant & value, int role)
bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole)
void setFilter(QDir::Filters filters)
void setIconProvider(QFileIconProvider * provider)
void setNameFilterDisables(bool enable)
void setNameFilters(const QStringList & filters)
void setReadOnly(bool enable)
void setResolveSymlinks(bool enable)
QModelIndex setRootPath(const QString & path)
qint64 size(const QModelIndex & index)
void sort(int column, Qt::SortOrder order)
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder)
QFlags<Qt::DropAction> supportedDropActions()
QString type(const QModelIndex & index)

ENUM VALUES

FileIconRole
FilePathRole
FileNameRole
FilePermissions

EXPORT

None by default.

AUTHOR

Dongxu Ma <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2011 - 2012 by Dongxu Ma

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/artistic.html